2017-03-19 10:37:15 -04:00
|
|
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
|
|
|
|
|
|
|
const Gio = imports.gi.Gio;
|
|
|
|
|
2018-09-05 20:55:20 -04:00
|
|
|
const { loadInterfaceXML } = imports.misc.fileUtils;
|
2017-03-19 10:37:15 -04:00
|
|
|
|
2018-09-05 20:55:20 -04:00
|
|
|
const PermissionStoreIface = loadInterfaceXML('org.freedesktop.impl.portal.PermissionStore');
|
2017-03-19 10:37:15 -04:00
|
|
|
const PermissionStoreProxy = Gio.DBusProxy.makeProxyWrapper(PermissionStoreIface);
|
|
|
|
|
|
|
|
function PermissionStore(initCallback, cancellable) {
|
|
|
|
return new PermissionStoreProxy(Gio.DBus.session,
|
|
|
|
'org.freedesktop.impl.portal.PermissionStore',
|
|
|
|
'/org/freedesktop/impl/portal/PermissionStore',
|
|
|
|
initCallback, cancellable);
|
|
|
|
};
|