1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-22 09:05:54 +02:00

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
This commit is contained in:
John Kehayias
2025-07-25 13:37:15 -04:00
parent 27322a0be4
commit 30a9e5deab
+3 -1
View File
@@ -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