emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#45431: closed ([PATCH] gnu: kiwix-desktop: Fix program start.)


From: GNU bug Tracking System
Subject: bug#45431: closed ([PATCH] gnu: kiwix-desktop: Fix program start.)
Date: Tue, 29 Dec 2020 20:30:03 +0000

Your message dated Tue, 29 Dec 2020 21:29:40 +0100
with message-id 
<3815859d39110ee91c1938482e18415645cfacc8.camel@student.tugraz.at>
and subject line Re: [PATCH] gnu: kiwix-desktop: Fix program start.
has caused the debbugs.gnu.org bug report #45431,
regarding [PATCH] gnu: kiwix-desktop: Fix program start.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
45431: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=45431
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: kiwix-desktop: Fix program start. Date: Fri, 25 Dec 2020 17:36:14 +0100
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




--- End Message ---
--- Begin Message --- Subject: Re: [PATCH] gnu: kiwix-desktop: Fix program start. Date: Tue, 29 Dec 2020 21:29:40 +0100 User-agent: Evolution 3.34.2
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)



--- End Message ---

reply via email to

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