diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 44747ea28..cd6e71248 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -29,8 +29,6 @@ const UserWidget = imports.ui.userWidget; const { loadInterfaceXML } = imports.misc.fileUtils; -Gio._promisify(Gio.DBusConnection.prototype, 'call', 'call_finish'); - const _ITEM_ICON_SIZE = 64; const EndSessionDialogIface = loadInterfaceXML('org.gnome.SessionManager.EndSessionDialog'); diff --git a/js/ui/environment.js b/js/ui/environment.js index 6764bd279..d1724a464 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -14,6 +14,8 @@ const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi; const Gettext = imports.gettext; const System = imports.system; +Gio._promisify(Gio.DBusConnection.prototype, 'call', 'call_finish'); + let _localTimeZone = null; // We can't import shell JS modules yet, because they may have