2017-03-19 10:37:15 -04:00
|
|
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
2019-01-31 09:07:06 -05:00
|
|
|
/* exported PermissionStore */
|
2017-03-19 10:37:15 -04:00
|
|
|
|
|
|
|
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);
|
2019-01-28 20:18:52 -05:00
|
|
|
}
|