Skip to content

Add Notification Portal v2 backend#266

Open
lenemter wants to merge 6 commits intomainfrom
lenemter/add-portal-backend
Open

Add Notification Portal v2 backend#266
lenemter wants to merge 6 commits intomainfrom
lenemter/add-portal-backend

Conversation

@lenemter
Copy link
Copy Markdown
Member

@lenemter lenemter commented Oct 5, 2025

It is currently impossible to implement notification portal fully inside the notification server itself because portals need to be launched by systemd, but our notification server need to be launched by gala. For now we can make portals forward notification requests to proxy dbus interface, which in OS 9 will allow us to move portal implementation fully inside notification server with minimal changes.

@lenemter lenemter added this to OS 9 Oct 6, 2025
@lenemter lenemter moved this to Needs Discussion in OS 9 Oct 6, 2025
@danirabbit danirabbit requested review from a team February 20, 2026 17:14
Copy link
Copy Markdown
Contributor

@zeebok zeebok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not totally familiar with the notification system but the code looks good to me

Comment thread src/PortalProxy.vala
buttons = new GenericArray<Notification.Button?> (0)
};

if (!Application.settings.get_boolean ("do-not-disturb") || notification.priority == GLib.NotificationPriority.URGENT) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we can check this condition earlier in this method so that the following code is less nested?

Comment thread src/PortalProxy.vala
}

~PortalProxy () {
connection.unregister_object (server_id);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we should unregister only when we successfully registered in the constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Discussion

Development

Successfully merging this pull request may close these issues.

4 participants