guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: guix-commits
Subject: 03/03: gnu: ungoogled-chromium: Add xdg-utils to PATH with wrapper.
Date: Wed, 10 Mar 2021 17:39:26 -0500 (EST)

lle_bout pushed a commit to branch master
in repository guix.

commit 00c1793ce8e2210e48b18422ea3e76da10541874
Author: Léo Le Bouter <lle-bout@zaclys.net>
AuthorDate: Wed Mar 10 03:29:49 2021 +0100

    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.
---
 gnu/packages/chromium.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
index f9ca357..b81a773 100644
--- a/gnu/packages/chromium.scm
+++ b/gnu/packages/chromium.scm
@@ -753,6 +753,7 @@
                     (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 @@
 
                  (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 @@
        ("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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]