gnomeExtensions.appindicator: Hardcode gjs path (#540374)

This commit is contained in:
Jan Tojnar
2026-08-06 00:35:06 +00:00
committed by GitHub
2 changed files with 21 additions and 0 deletions

View File

@@ -54,6 +54,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

View File

@@ -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();