summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Kehayias <john.kehayias@protonmail.com>2025-07-25 13:37:15 -0400
committerJohn Kehayias <john.kehayias@protonmail.com>2025-07-26 00:33:28 -0400
commit30a9e5deab319020b3e2d8f21e4645f4ecb18026 (patch)
tree5ef08c5d19b2451f6481e2d56e9c56a0a9e7f19e
parent27322a0be46cbe7bae6501d0b33fd35dbc5ffc36 (diff)
gnu: syncthing-gtk: Wrap with GUIX_GDK_PIXBUF_MODULE_FILES.
Fixes #1266. Although currently happening, previously, syncthing-gtk would fail to open with "Type RsvgHandle has already been registered". This was likely due to various grafts as different librsvg would appear in environment variables compared to syncthing-gtk references. This change fixed it at the time and should help void it in the future. * gnu/packages/syncthing.scm (syncthing-gtk)[arguments]{phases}: In wrap-libs phase, also wrap with GUIX_GDK_PIXBUF_MODULE_FILES. Change GI_TYPELIB_PATH to use suffix. Change-Id: I2ae2e2ace5df5882b1cbdcd149cc0bc4823d3939
-rw-r--r--gnu/packages/syncthing.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/packages/syncthing.scm b/gnu/packages/syncthing.scm
index e64bfb1efc..43844f0f36 100644
--- a/gnu/packages/syncthing.scm
+++ b/gnu/packages/syncthing.scm
@@ -184,7 +184,9 @@ Protocol.")
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(wrap-program (string-append out "/bin/syncthing-gtk")
- `("GI_TYPELIB_PATH" ":" prefix
+ `("GUIX_GDK_PIXBUF_MODULE_FILES" ":" suffix
+ (,(getenv "GUIX_GDK_PIXBUF_MODULE_FILES")))
+ `("GI_TYPELIB_PATH" ":" suffix
(,(getenv "GI_TYPELIB_PATH"))))))))))
(inputs
(list bash-minimal