environment: Define promisify of g_query_info_async in the global scope
This is something that will be used in other places outside the background code, so let's just define it globally without having to care about the importing order. Co-authored-by: Marco Trevisan (Treviño) <mail@3v1n0.net> Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2638>
This commit is contained in:
parent
7ebea10cc8
commit
3e3aa1f7a3
@ -101,8 +101,6 @@ const LoginManager = imports.misc.loginManager;
|
||||
const Main = imports.ui.main;
|
||||
const Params = imports.misc.params;
|
||||
|
||||
Gio._promisify(Gio.File.prototype, 'query_info_async');
|
||||
|
||||
var DEFAULT_BACKGROUND_COLOR = Clutter.Color.from_pixel(0x2e3436ff);
|
||||
|
||||
const BACKGROUND_SCHEMA = 'org.gnome.desktop.background';
|
||||
|
@ -55,6 +55,7 @@ Gio._promisify(Gio.DBusConnection.prototype, 'call');
|
||||
Gio._promisify(Gio.DBusProxy, 'new');
|
||||
Gio._promisify(Gio.DBusProxy.prototype, 'init_async');
|
||||
Gio._promisify(Gio.DBusProxy.prototype, 'call_with_unix_fd_list');
|
||||
Gio._promisify(Gio.File.prototype, 'query_info_async');
|
||||
Gio._promisify(Polkit.Permission, 'new');
|
||||
|
||||
let _localTimeZone = null;
|
||||
|
Loading…
Reference in New Issue
Block a user