Skip to content

Commit

Permalink
launcherAPI: Actually keep track of the unity bus ID and replace it
Browse files Browse the repository at this point in the history
Fixes #708
Fixes LP: #1756837
  • Loading branch information
3v1n0 committed Mar 18, 2020
1 parent bb2ae65 commit 811c2a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions launcherAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ var LauncherEntryRemoteModel = class DashToDock_LauncherEntryRemoteModel {

_acquireUnityDBus() {
if (!this._unity_bus_id) {
Gio.DBus.session.own_name('com.canonical.Unity',
Gio.BusNameOwnerFlags.ALLOW_REPLACEMENT, null, null);
this._unity_bus_id = Gio.DBus.session.own_name('com.canonical.Unity',
Gio.BusNameOwnerFlags.ALLOW_REPLACEMENT | Gio.BusNameOwnerFlags.REPLACE,
null, () => this._unity_bus_id = 0);
}
}

Expand Down

0 comments on commit 811c2a2

Please sign in to comment.