This is an automated email from the git hooks/post-receive script.
guix_mirror_bot pushed a commit to branch gnome-team
in repository guix.
The following commit(s) were added to refs/heads/gnome-team by this push:
new fbb3b4d101 gnu: gnome-calculator: Use absolute paths for exec.
fbb3b4d101 is described below
commit fbb3b4d101cfc46063a6fa367b40afdafcf91aff
Author: Noé Lopez <[email protected]>
AuthorDate: Mon Jun 22 18:00:09 2026 +0200
gnu: gnome-calculator: Use absolute paths for exec.
The search provider would fail because after being spawned from D-Bus, it
would try to exec itself using argv[0]. However that was not an absolute
path
and since the binary lives in libexec and so does not appear in PATH, it
would
fail.
This patch uses /proc/self/exe instead of argv[0]. It hardcodes the
gnome-calculator command as well to prevent similar issues.
* gnu/packages/gnome.scm (gnome-calculator)[arguments]<#:phases>: Add phase.
Fixes: guix/guix#9462
Change-Id: Ib629b591678bdd9aab701f9deff8b4c2d7efee5a
Signed-off-by: Noé Lopez <[email protected]>
---
gnu/packages/gnome.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 2e65fbba77..1abc032b0a 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11429,6 +11429,15 @@ handling the startup notification side.")
(substitute* "meson.build"
(("gtk_update_icon_cache: true")
"gtk_update_icon_cache: false"))))
+ (add-after 'unpack 'set-absolute-paths
+ (lambda _
+ (define calculator
+ (string-append #$output "/bin/gnome-calculator"))
+ (substitute* "search-provider/search-provider.vala"
+ (("argv0 = .*;")
+ "argv0 = \"/proc/self/exe\";")
+ (("gnome-calculator --equation")
+ (string-append calculator " --equation")))))
(add-before 'check 'pre-check
(lambda _
;; Tests require a writable HOME.