mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
The extensions app is another part of the code base that is largely separate from the main code base, and can therefore be ported to ESM before the big switch. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2786>
10 lines
319 B
Text
10 lines
319 B
Text
import {programInvocationName, programArgs} from 'system';
|
|
|
|
imports.package.init({
|
|
name: '@PACKAGE_NAME@',
|
|
version: '@PACKAGE_VERSION@',
|
|
prefix: '@prefix@',
|
|
libdir: '@libdir@',
|
|
});
|
|
const {main} = await import(`${imports.package.moduledir}/main.js`);
|
|
await main([programInvocationName, ...programArgs]);
|