diff --git a/js/misc/gnomeSession.js b/js/misc/gnomeSession.js index dc58abdb0..3428aab0e 100644 --- a/js/misc/gnomeSession.js +++ b/js/misc/gnomeSession.js @@ -31,12 +31,12 @@ function Presence(initCallback, cancellable) { // change at runtime (changes always come in the form // of new inhibitors) const InhibitorIface = - - - - - - + + + + + + ; var InhibitorProxy = Gio.DBusProxy.makeProxyWrapper(InhibitorIface); diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 198d31b03..06f2f4a4f 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -116,10 +116,10 @@ const DialogContent = { }; function findAppFromInhibitor(inhibitor) { - let desktopFile = inhibitor.app_id; + let [desktopFile] = inhibitor.GetAppIdSync(); if (!GLib.str_has_suffix(desktopFile, '.desktop')) - desktopFile += '.desktop'; + desktopFile += '.desktop'; let candidateDesktopFiles = []; @@ -482,7 +482,8 @@ const EndSessionDialog = new Lang.Class({ let app = findAppFromInhibitor(inhibitor); if (app) { - let item = new ListItem(app, inhibitor.reason); + let [reason] = inhibitor.GetReasonSync(); + let item = new ListItem(app, reason); item.connect('activate', Lang.bind(this, function() { this.close(global.get_current_time());