[gnome-shell] main: Activate notification proxy on start
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] main: Activate notification proxy on start
- Date: Thu, 12 Mar 2020 16:16:45 +0000 (UTC)
commit f2df347ddb76c5a4cd218d59bd4ea762d15227a8
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Mar 4 02:35:21 2020 +0100
main: Activate notification proxy on start
At least for the time being, this looks like the easiest option to
launch the service:
- we could add a systemd unit, but then we'd need to update the
RequiredComponents in the fallback session definition as well,
making it necessary for gnome-shell, gnome-shell-extensions and
gnome-session to be updated to 3.36.1 in lockstep
- autostart is problematic as it would make gnome-shell conflict
with other notification daemons; also autostart is most useful
with automatic shutdown, which would require tracking signal
subscriber to determine when the service is unused
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/547
js/ui/main.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index 6b180bd9be..3d921409f6 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -142,6 +142,9 @@ function start() {
shellDBusService = new ShellDBus.GnomeShell();
shellMountOpDBusService = new ShellMountOperation.GnomeShellMountOpHandler();
+ Gio.DBus.session.watch_name('org.gnome.Shell.Notifications',
+ Gio.BusNameWatcherFlags.AUTO_START, null, null);
+
_sessionUpdated();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]