unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Antero Mejr <antero@mailbox.org>
Cc: 57742-done@debbugs.gnu.org
Subject: bug#57742: QT plugins from profile not found (QT_PLUGIN_PATH)
Date: Tue, 28 Mar 2023 20:21:11 -0400	[thread overview]
Message-ID: <87wn3076h4.fsf_-_@gmail.com> (raw)
In-Reply-To: <20230329000511.5277-1-antero@mailbox.org> (Antero Mejr's message of "Wed, 29 Mar 2023 00:05:11 +0000")

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




  reply	other threads:[~2023-03-29  0:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-11 20:53 bug#57742: QT plugins from profile not found (QT_PLUGIN_PATH) Morgan Smith
2022-09-14 14:17 ` Maxim Cournoyer
2022-10-07 19:39   ` Maxim Cournoyer
2022-11-30 14:57 ` kiasoc5 via Bug reports for GNU Guix
2023-02-17 16:25 ` Marek Paśnikowski via Bug reports for GNU Guix
2023-03-07  0:55   ` Maxim Cournoyer
2023-03-07 13:39   ` Maxim Cournoyer
2023-03-28 23:53     ` Maxim Cournoyer
2023-03-29  0:05 ` bug#57742: [PATCH core-updates] build: qt-utils: Add prefix when wrapping QT_PLUGIN_PATH variable Antero Mejr via Bug reports for GNU Guix
2023-03-29  0:21   ` Maxim Cournoyer [this message]
2023-03-29  0:15 ` Antero Mejr via Bug reports for GNU Guix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wn3076h4.fsf_-_@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=57742-done@debbugs.gnu.org \
    --cc=antero@mailbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).