From e0250af0c5d36dc7395167622d3f788a7270c64b Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Fri, 10 Jul 2026 16:27:02 +0200 Subject: [PATCH] gnomeExtensions.appindicator: Hardcode gjs path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following error: Looking for StatusNotifierItem's: GLib.SpawnError: Failed to execute child process “gjs” (No such file or directory) --- .../gnome/extensions/extensionOverrides.nix | 8 ++++++++ .../appindicatorsupport_at_rgcjonas.gmail.com.patch | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/desktops/gnome/extensions/extensionOverridesPatches/appindicatorsupport_at_rgcjonas.gmail.com.patch diff --git a/pkgs/desktops/gnome/extensions/extensionOverrides.nix b/pkgs/desktops/gnome/extensions/extensionOverrides.nix index a1f55d90c75c..8fa565f2491c 100644 --- a/pkgs/desktops/gnome/extensions/extensionOverrides.nix +++ b/pkgs/desktops/gnome/extensions/extensionOverrides.nix @@ -52,6 +52,14 @@ in # the upstream repository's sources. super: lib.trivial.pipe super [ + (patchExtension "appindicatorsupport@rgcjonas.gmail.com" (old: { + patches = [ + (replaceVars ./extensionOverridesPatches/appindicatorsupport_at_rgcjonas.gmail.com.patch { + gjs = lib.getExe gjs; + }) + ]; + })) + (patchExtension "apps-menu@gnome-shell-extensions.gcampax.github.com" (old: { patches = [ (replaceVars diff --git a/pkgs/desktops/gnome/extensions/extensionOverridesPatches/appindicatorsupport_at_rgcjonas.gmail.com.patch b/pkgs/desktops/gnome/extensions/extensionOverridesPatches/appindicatorsupport_at_rgcjonas.gmail.com.patch new file mode 100644 index 000000000000..9179e8039063 --- /dev/null +++ b/pkgs/desktops/gnome/extensions/extensionOverridesPatches/appindicatorsupport_at_rgcjonas.gmail.com.patch @@ -0,0 +1,13 @@ +diff --git a/statusNotifierWatcher.js b/statusNotifierWatcher.js +index c4c3486..67cf761 100644 +--- a/statusNotifierWatcher.js ++++ b/statusNotifierWatcher.js +@@ -160,7 +160,7 @@ export class StatusNotifierWatcher { + extension.path, 'tools', 'busAnalyzer.js', + ]); + +- const subProcess = Gio.Subprocess.new(['gjs', '-m', busAnalyzer], ++ const subProcess = Gio.Subprocess.new(['@gjs@', '-m', busAnalyzer], + Gio.SubprocessFlags.STDOUT_PIPE | Gio.SubprocessFlags.STDERR_PIPE); + + const stdOut = subProcess.get_stdout_pipe();