mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
scripting: Convert to ES module and migrate tests
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2822>
This commit is contained in:
parent
9a2c3da868
commit
3f12f3a87c
8 changed files with 32 additions and 29 deletions
|
|
@ -44,7 +44,6 @@ const NotificationDaemon = imports.ui.notificationDaemon;
|
|||
const WindowAttentionHandler = imports.ui.windowAttentionHandler;
|
||||
const Screenshot = imports.ui.screenshot;
|
||||
const ScreenShield = imports.ui.screenShield;
|
||||
const Scripting = imports.ui.scripting;
|
||||
const SessionMode = imports.ui.sessionMode;
|
||||
const ShellDBus = imports.ui.shellDBus;
|
||||
const ShellMountOperation = imports.ui.shellMountOperation;
|
||||
|
|
@ -303,9 +302,11 @@ async function _initializeUI() {
|
|||
});
|
||||
}
|
||||
|
||||
let Scripting;
|
||||
let perfModule;
|
||||
const {automationScript} = global;
|
||||
if (automationScript) {
|
||||
Scripting = await import('./scripting.js');
|
||||
perfModule = await import(automationScript.get_uri());
|
||||
if (perfModule.init)
|
||||
perfModule.init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue