depot/third_party/nixpkgs/pkgs/desktops/gnome/extensions/pop-shell/fix-gjs.patch
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

26 lines
1,022 B
Diff

diff --git a/src/extension.ts b/src/extension.ts
index f34e865..f12d4db 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -556,7 +556,7 @@ export class Ext extends Ecs.System<ExtEvent> {
return true;
};
- const ipc = utils.async_process_ipc(['gjs', '--module', path]);
+ const ipc = utils.async_process_ipc([path]);
if (ipc) {
const generator = (stdout: any, res: any) => {
diff --git a/src/panel_settings.ts b/src/panel_settings.ts
index fbcafbf..ef409ee 100644
--- a/src/panel_settings.ts
+++ b/src/panel_settings.ts
@@ -352,7 +352,7 @@ function color_selector(ext: Ext, menu: any) {
color_selector_item.add_child(color_button);
color_button.connect('button-press-event', () => {
let path = get_current_path() + '/color_dialog/main.js';
- let resp = GLib.spawn_command_line_async(`gjs --module ${path}`);
+ let resp = GLib.spawn_command_line_async(`${path}`);
if (!resp) {
return null;
}