depot/third_party/nixpkgs/pkgs/desktops/gnome/extensions/pop-shell/fix-gjs.patch

30 lines
999 B
Diff
Raw Normal View History

diff --git a/src/extension.ts b/src/extension.ts
index c3833e9..611e84c 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -544,7 +544,7 @@ export class Ext extends Ecs.System<ExtEvent> {
return true
}
- const ipc = utils.async_process_ipc(["gjs", 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 5d02d33..1cd70d0 100644
--- a/src/panel_settings.ts
+++ b/src/panel_settings.ts
@@ -348,7 +348,7 @@ function color_selector(ext: Ext, menu: any) {
color_selector_item.add_child(color_button);
color_button.connect('button-press-event', () => {
let path = Me.dir.get_path() + "/color_dialog/main.js";
- let resp = GLib.spawn_command_line_async(`gjs ${path}`);
+ let resp = GLib.spawn_command_line_async(`${path}`);
if (!resp) {
return null;
--
2.37.3