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

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

bug#57742: closed (QT plugins from profile not found (QT_PLUGIN_PATH))


From: GNU bug Tracking System
Subject: bug#57742: closed (QT plugins from profile not found (QT_PLUGIN_PATH))
Date: Wed, 29 Mar 2023 00:22:02 +0000

Your message dated Tue, 28 Mar 2023 20:21:11 -0400
with message-id <87wn3076h4.fsf_-_@gmail.com>
and subject line Re: bug#57742: QT plugins from profile not found 
(QT_PLUGIN_PATH)
has caused the debbugs.gnu.org bug report #57742,
regarding QT plugins from profile not found (QT_PLUGIN_PATH)
to be marked as done.

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


-- 
57742: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57742
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: QT plugins from profile not found (QT_PLUGIN_PATH) Date: Sun, 11 Sep 2022 16:53:08 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
Hello!

Ever since commit 1f466ed6be932526fc69e72ffd50390691d0d382 we don't look
at the user's value of QT_PLUGIN_PATH.  The comment says this is to
prevent plugin confusion between Qt5 and Qt6 stuff.

This is very unfortunate for me.  I have qtwayland (qt5) installed in my
profile so QT programs can find the wayland plugin they need to display
themselves on wayland.  Unfortunately, they no longer can.

Maybe we could make our own Guix environment variables like
GUIX_QT5_QT_PLUGIN_PATH and GUIX_QT6_QT_PLUGIN_PATH and then add those
to the wrapper?  So like qtwayland would set GUIX_QT5_QT_PLUGIN_PATH and
then the wrapper in qt-utils.scm could read that?  Just an idea, I have
no clue what a good solution for this issue looks like.

Thanks,

Morgan



--- End Message ---
--- Begin Message --- Subject: Re: bug#57742: QT plugins from profile not found (QT_PLUGIN_PATH) Date: Tue, 28 Mar 2023 20:21:11 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Hi,

Antero Mejr <antero@mailbox.org> writes:

> This allows extension of QT_PLUGIN_PATH.
> QT programs will now work under Wayland when qt-wayland is installed.
>
> * guix/build/qt-utils.scm (variables-for-wrapping)[QT_PLUGIN_PATH]: Add prefix
> value to 'wrap-program' procedure call for QT_PLUGIN_PATH variable.
> ---
> Tested using Wayland and X (via XWayland), using plugin paths for QT5, QT6, or
> both. In all cases, QT selects the correct plugin if it's present anywhere in
> QT_PLUGIN_PATH.
>
>  guix/build/qt-utils.scm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/guix/build/qt-utils.scm b/guix/build/qt-utils.scm
> index 2e47f1bc02..b503659521 100644
> --- a/guix/build/qt-utils.scm
> +++ b/guix/build/qt-utils.scm
> @@ -89,7 +89,7 @@ (define exists? (match file-type
>      '("XDG_CONFIG_DIRS" suffix directory "/etc/xdg")
>      ;; We wrap exactly to avoid potentially mixing Qt5/Qt6 components, which
>      ;; would cause warnings, perhaps problems.
> -    `("QT_PLUGIN_PATH" = directory
> +    `("QT_PLUGIN_PATH" prefix directory
>        ,(format #f "/lib/qt~a/plugins" qt-major-version))
>      `("QML2_IMPORT_PATH" = directory
>        ,(format #f "/lib/qt~a/qml" qt-major-version))

Already fixed on my staging :-).

I'll merge staging into master as soon as it catches up to master
according to https://ci.guix.gnu.org/.  Help welcome!

-- 
Thanks,
Maxim


--- End Message ---

reply via email to

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