main: Unwatch notification proxy name after auto-start
We only "watch" the 'org.gnome.Shell.Notifications' name to start the service, not to actually monitor name owner changes; so unwatch the name once that's done. https://gitlab.gnome.org/GNOME/gnome-shell/issues/2381
This commit is contained in:
parent
f2df347ddb
commit
002160e524
@ -142,8 +142,10 @@ 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);
|
||||
const watchId = Gio.DBus.session.watch_name('org.gnome.Shell.Notifications',
|
||||
Gio.BusNameWatcherFlags.AUTO_START,
|
||||
bus => bus.unwatch_name(watchId),
|
||||
bus => bus.unwatch_name(watchId));
|
||||
|
||||
_sessionUpdated();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user