dbusServices/notifications: Add a separate notification daemon
Add a small service that exposes the Fdo notification API under the well-known name, and forwards any requests to the actual implementation in the shell. That way any app with permission to talk to org.freedesktop.Notifications will get exactly that, and nothing more. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/547
This commit is contained in:

committed by
Florian Müllner

parent
1aff64a38b
commit
799bbdb503
11
js/dbusServices/notifications/main.js
Normal file
11
js/dbusServices/notifications/main.js
Normal file
@ -0,0 +1,11 @@
|
||||
/* exported main */
|
||||
|
||||
const { DBusService } = imports.dbusService;
|
||||
const { NotificationDaemon } = imports.notificationDaemon;
|
||||
|
||||
function main() {
|
||||
const service = new DBusService(
|
||||
'org.gnome.Shell.Notifications',
|
||||
new NotificationDaemon());
|
||||
service.run();
|
||||
}
|
Reference in New Issue
Block a user