guix-commits
[Top][All Lists]
Advanced

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

01/03: gnu: kiwix-desktop: Fix program start.


From: guix-commits
Subject: 01/03: gnu: kiwix-desktop: Fix program start.
Date: Tue, 29 Dec 2020 15:25:04 -0500 (EST)

leoprikler pushed a commit to branch master
in repository guix.

commit 9810ed344fac6b04148897399a1a0685047bb7bf
Author: Michael Rohleder <mike@rohleder.de>
AuthorDate: Fri Dec 25 17:36:14 2020 +0100

    gnu: kiwix-desktop: Fix program start.
    
    Fixes <https://bugs.gnu.org/45404>.
    
    * gnu/packages/web.scm (kiwix-desktop)[arguments]: Add phase to wrap
    QTWEBENGINEPROCESS_PATH.
    
    Signed-off-by: Leo Prikler <leo.prikler@student.tugraz.at>
---
 gnu/packages/web.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 3693911..516caba 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -7981,7 +7981,17 @@ It contains the code shared by all Kiwix ports.")
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "kiwix-desktop.pro"
                (("webenginewidgets" all) (string-append all " printsupport")))
-             #t)))))
+             #t))
+         (add-after 'install 'wrap-qt-process-path
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin/kiwix-desktop"))
+                    (qt-process-path (string-append
+                                      (assoc-ref inputs "qtwebengine")
+                                      "/lib/qt5/libexec/QtWebEngineProcess")))
+               (wrap-program bin
+                 `("QTWEBENGINEPROCESS_PATH" = (,qt-process-path)))
+               #t))))))
     (inputs
      `(("curl" ,curl)
        ("icu4c" ,icu4c)



reply via email to

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