location: Update for PermissionStore DBus API changes
As xdg-app has been renamed to Flatpak, the permission store's bus name and interface name have been changes as well. https://bugzilla.gnome.org/show_bug.cgi?id=766598
This commit is contained in:
parent
841e0132e9
commit
437256e0f1
@ -62,8 +62,8 @@ var AgentIface = '<node> \
|
|||||||
</interface> \
|
</interface> \
|
||||||
</node>';
|
</node>';
|
||||||
|
|
||||||
var XdgAppIface = '<node> \
|
var PermissionStoreIface = '<node> \
|
||||||
<interface name="org.freedesktop.XdgApp.PermissionStore"> \
|
<interface name="org.freedesktop.impl.portal.PermissionStore"> \
|
||||||
<method name="Lookup"> \
|
<method name="Lookup"> \
|
||||||
<arg name="table" type="s" direction="in"/> \
|
<arg name="table" type="s" direction="in"/> \
|
||||||
<arg name="id" type="s" direction="in"/> \
|
<arg name="id" type="s" direction="in"/> \
|
||||||
@ -80,7 +80,7 @@ var XdgAppIface = '<node> \
|
|||||||
</interface> \
|
</interface> \
|
||||||
</node>';
|
</node>';
|
||||||
|
|
||||||
const PermissionStore = Gio.DBusProxy.makeProxyWrapper(XdgAppIface);
|
const PermissionStore = Gio.DBusProxy.makeProxyWrapper(PermissionStoreIface);
|
||||||
|
|
||||||
const Indicator = new Lang.Class({
|
const Indicator = new Lang.Class({
|
||||||
Name: 'LocationIndicator',
|
Name: 'LocationIndicator',
|
||||||
@ -254,8 +254,8 @@ const Indicator = new Lang.Class({
|
|||||||
_connectToPermissionStore: function() {
|
_connectToPermissionStore: function() {
|
||||||
this._permStoreProxy = null;
|
this._permStoreProxy = null;
|
||||||
new PermissionStore(Gio.DBus.session,
|
new PermissionStore(Gio.DBus.session,
|
||||||
'org.freedesktop.XdgApp',
|
'org.freedesktop.impl.portal.PermissionStore',
|
||||||
'/org/freedesktop/XdgApp/PermissionStore',
|
'/org/freedesktop/impl/portal/PermissionStore',
|
||||||
Lang.bind(this, this._onPermStoreProxyReady));
|
Lang.bind(this, this._onPermStoreProxyReady));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user