This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const ExtensionUtils = await import('resource:///org/gnome/shell/misc/extensionUtils.js'); | |
| const FileUtils = await import('resource:///org/gnome/shell/misc/fileUtils.js'); | |
| const { ExtensionType } = ExtensionUtils; | |
| (async function () { | |
| const perUserDir = Gio.File.new_for_path(global.userdatadir); | |
| const includeUserDir = global.settings.get_boolean('allow-extension-installation'); | |
| const extensionFiles = [...FileUtils.collectFromDatadirs('extensions', includeUserDir)]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| home.file."test-file" = { | |
| text = "Hello world"; | |
| force = true; | |
| mutable = true; | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| import esbuild from "esbuild"; | |
| import fs from "fs/promises"; | |
| import { resolve as resolvePath } from "path"; | |
| const [root] = process.argv.slice(2); | |
| console.log(JSON.stringify(await getGnomeExtensionGiDependencies(root))); | |
| async function getGnomeExtensionGiDependencies(root) { | |
| const entryPoints = [resolvePath(root, "extension.js")]; |
OlderNewer