From 9810ed344fac6b04148897399a1a0685047bb7bf Mon Sep 17 00:00:00 2001 From: Michael Rohleder Date: Fri, 25 Dec 2020 17:36:14 +0100 Subject: gnu: kiwix-desktop: Fix program start. Fixes . * gnu/packages/web.scm (kiwix-desktop)[arguments]: Add phase to wrap QTWEBENGINEPROCESS_PATH. Signed-off-by: Leo Prikler --- gnu/packages/web.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gnu/packages/web.scm') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 3693911b88..516cabaa19 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) -- cgit v1.2.3