Adding upstream version 48.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
0d8723e422
commit
1fcdbd5df9
1059 changed files with 623842 additions and 0 deletions
22
js/ui/init.js
Normal file
22
js/ui/init.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
import GLib from 'gi://GLib';
|
||||
import Gio from 'gi://Gio';
|
||||
|
||||
import './environment.js';
|
||||
import {formatError} from '../misc/errorUtils.js';
|
||||
|
||||
// Run the Mutter main loop after
|
||||
// GJS finishes resolving this module.
|
||||
imports._promiseNative.setMainLoopHook(() => {
|
||||
// Queue starting the shell
|
||||
GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
|
||||
import('./main.js').then(main => main.start()).catch(e => {
|
||||
const error = new GLib.Error(
|
||||
Gio.IOErrorEnum, Gio.IOErrorEnum.FAILED, formatError(e));
|
||||
global.context.terminate_with_error(error);
|
||||
});
|
||||
return GLib.SOURCE_REMOVE;
|
||||
});
|
||||
|
||||
// Run the meta context's main loop
|
||||
global.context.run_main_loop();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue