gnu: ungoogled-chromium: Add xdg-utils to PATH with wrapper.

This will ensure that 'mailto:' links work out of the box, among others.

* gnu/packages/chromium.scm (ungoogled-chromium): Modify replacement 'install
phase to add xdg-utils to PATH with wrap-program.
This commit is contained in:
Léo Le Bouter 2021-03-10 03:29:49 +01:00
parent 9b52ae19b1
commit 00c1793ce8
No known key found for this signature in database
GPG key ID: 45A8B1E86BCD10A6

View file

@ -753,6 +753,7 @@ (define-public ungoogled-chromium
(resources (string-append lib "/resources"))
(preferences (assoc-ref inputs "master-preferences"))
(gtk+ (assoc-ref inputs "gtk+"))
(xdg-utils (assoc-ref inputs "xdg-utils"))
(sh (which "sh")))
(substitute* '("chrome/app/resources/manpage.1.in"
@ -789,7 +790,8 @@ (define-public ungoogled-chromium
(wrap-program exe
;; Avoid file manager crash. See <https://bugs.gnu.org/26593>.
`("XDG_DATA_DIRS" ":" prefix (,(string-append gtk+ "/share")))))
`("XDG_DATA_DIRS" ":" prefix (,(string-append gtk+ "/share")))
`("PATH" ":" prefix (,(string-append xdg-utils "/bin")))))
(with-directory-excursion "chrome/app/theme/chromium"
(for-each
@ -874,7 +876,8 @@ (define-public ungoogled-chromium
("udev" ,eudev)
("valgrind" ,valgrind)
("vulkan-headers" ,vulkan-headers)
("wayland" ,wayland)))
("wayland" ,wayland)
("xdg-utils" ,xdg-utils)))
(native-search-paths
(list (search-path-specification
(variable "CHROMIUM_EXTENSION_DIRECTORY")