* [bug#45431] [PATCH] gnu: kiwix-desktop: Fix program start.
@ 2020-12-25 16:36 Michael Rohleder
2020-12-29 20:29 ` bug#45404: " Leo Prikler
0 siblings, 1 reply; 2+ messages in thread
From: Michael Rohleder @ 2020-12-25 16:36 UTC (permalink / raw)
To: 45431
Fixes <https://bugs.gnu.org/45404>.
* gnu/packages/web.scm (kiwix-desktop)[arguments]: Add phase to wrap
QTWEBENGINEPROCESS_PATH.
---
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 8d7dfe2804..7486eb7f5b 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)
--
2.29.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#45404: [PATCH] gnu: kiwix-desktop: Fix program start.
2020-12-25 16:36 [bug#45431] [PATCH] gnu: kiwix-desktop: Fix program start Michael Rohleder
@ 2020-12-29 20:29 ` Leo Prikler
0 siblings, 0 replies; 2+ messages in thread
From: Leo Prikler @ 2020-12-29 20:29 UTC (permalink / raw)
To: Michael Rohleder; +Cc: 45404-done, 45431-done
Pushed, thanks!
Small hint, if you want to use pure environments, don't forget
to expose environment variables such as DISPLAY and XAUTHORITY.
Regards,
Leo
Am Freitag, den 25.12.2020, 17:36 +0100 schrieb Michael Rohleder:
> Fixes <https://bugs.gnu.org/45404>;.
>
> * gnu/packages/web.scm (kiwix-desktop)[arguments]: Add phase to wrap
> QTWEBENGINEPROCESS_PATH.
> ---
> 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 8d7dfe2804..7486eb7f5b 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/QtWebEngineP
> rocess")))
> + (wrap-program bin
> + `("QTWEBENGINEPROCESS_PATH" = (,qt-process-path)))
> + #t))))))
> (inputs
> `(("curl" ,curl)
> ("icu4c" ,icu4c)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-29 20:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-25 16:36 [bug#45431] [PATCH] gnu: kiwix-desktop: Fix program start Michael Rohleder
2020-12-29 20:29 ` bug#45404: " Leo Prikler
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.