Skip to content

Commit

Permalink
move DBus interface loading from _gsconnect.js
Browse files Browse the repository at this point in the history
  • Loading branch information
andyholmes committed Aug 2, 2020
1 parent f5c6297 commit 5706458
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/_gsconnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,6 @@ gsconnect.get_resource = function(rel_path) {
};


/**
* DBus Interface Introspection
*/
gsconnect.dbusinfo = Gio.DBusNodeInfo.new_for_xml(
gsconnect.get_resource(`${gsconnect.app_id}.xml`)
);
gsconnect.dbusinfo.nodes.forEach(info => info.cache_build());


/**
* Install desktop files for user installs
*/
Expand Down
9 changes: 9 additions & 0 deletions src/service/__init__.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ globalThis.HAVE_REMOTEINPUT = GLib.getenv('GDMSESSION') !== 'ubuntu-wayland';
globalThis.HAVE_WAYLAND = GLib.getenv('XDG_SESSION_TYPE') === 'wayland';


/*
* DBus Interface Introspection
*/
gsconnect.dbusinfo = Gio.DBusNodeInfo.new_for_xml(
gsconnect.get_resource(`${gsconnect.app_id}.xml`)
);
gsconnect.dbusinfo.nodes.forEach(info => info.cache_build());


/**
* A custom debug function that logs at LEVEL_MESSAGE to avoid the need for env
* variables to be set.
Expand Down

0 comments on commit 5706458

Please sign in to comment.