guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: icecat: Fix GTK 3 file chooser crash.


From: Clément Lassieur
Subject: 01/01: gnu: icecat: Fix GTK 3 file chooser crash.
Date: Fri, 21 Apr 2017 15:06:07 -0400 (EDT)

snape pushed a commit to branch master
in repository guix.

commit 6e75740f8916ee7113fb7c19f44798f2dfaf589d
Author: Clément Lassieur <address@hidden>
Date:   Fri Apr 21 19:40:10 2017 +0200

    gnu: icecat: Fix GTK 3 file chooser crash.
    
    * gnu/packages/gnuzilla.scm (icecat)[arguments]: Add a 'wrap-program' phase 
to
    set XDG_DATA_DIRS.
---
 gnu/packages/gnuzilla.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 91bb0a6..efe63ad 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -750,7 +750,16 @@ standards.")
                       (copy-file file (string-append icons "/icecat.png"))))
                   '("default16.png" "default22.png" "default24.png"
                     "default32.png" "default48.png" "content/icon64.png"
-                    "mozicon128.png" "default256.png")))))))))
+                    "mozicon128.png" "default256.png"))))))
+         ;; This fixes the file chooser crash that happens with GTK 3.
+         (add-after 'install 'wrap-program
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (lib (string-append out "/lib"))
+                    (gtk (assoc-ref inputs "gtk+"))
+                    (gtk-share (string-append gtk "/share")))
+               (wrap-program (car (find-files lib "^icecat$"))
+                 `("XDG_DATA_DIRS" ":" prefix (,gtk-share)))))))))
     (home-page "https://www.gnu.org/software/gnuzilla/";)
     (synopsis "Entirely free browser derived from Mozilla Firefox")
     (description



reply via email to

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