unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Rodrigo Morales <rodrigo-mailing-lists@morales.pe>
Cc: 73897@debbugs.gnu.org
Subject: bug#73897: QT_PLUGIN_PATH is set by guix home and causes flameshot error (Ubuntu 22.04.5 LTS)
Date: Wed, 23 Oct 2024 22:01:01 +0900	[thread overview]
Message-ID: <87plnrynw2.fsf@gmail.com> (raw)
In-Reply-To: <875xpn7ci3.fsf@morales.pe> (Rodrigo Morales's message of "Sat, 19 Oct 2024 21:07:48 -0500")

Hi Rodrigo,

Rodrigo Morales <rodrigo-mailing-lists@morales.pe> writes:

> I am using "guix home" for managing my dotfiles in Ubuntu 22.04.5 LTS.
>
> I noticed that the environment variable =QT_PLUGIN_PATH= is set to
> paths contained within ~/.guix-home and ~/.guix-profile (see first
> code block below.) This created an error when trying to run the binary
> flameshot which was installed through =sudo apt install flameshot=
> (see second code block below.)
>
> #+BEGIN_SRC text
> $ env | grep -i qt
> QT_ACCESSIBILITY=1
> QT_IM_MODULE=ibus
> QMAKEPATH=/home/rodrigo/.guix-home/profile/lib/qt5:/home/rodrigo/.guix-profile/lib/qt5
> QT_PLUGIN_PATH=/home/rodrigo/.guix-home/profile/lib/qt5/plugins:/home/rodrigo/.guix-profile/lib/qt5/plugins
> #+END_SRC
>
> #+BEGIN_SRC text
> $ flameshot gui ; echo Exit code: $?
> qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
> This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
>
> Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.

This reminds me of bug#54129, and also that Guix used to cobble up
PYTHONPATH for its own use, which would interfere with a foreign
distribution's Python installation.

Perhaps Qt could be patched to, on top of the usual environment
variable, accept GUIX_ prefixed ones that would be used by the Guix
search paths.  This way Qt from Guix would be able to discover its installed
Qt modules without interfering with the host Qt.

Meamwhile, you also use flameshot from Guix instead, to resolve your
immediate issue.

-- 
Thanks,
Maxim




      reply	other threads:[~2024-10-23 13:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-20  2:07 bug#73897: QT_PLUGIN_PATH is set by guix home and causes flameshot error (Ubuntu 22.04.5 LTS) Rodrigo Morales
2024-10-23 13:01 ` Maxim Cournoyer [this message]

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=87plnrynw2.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=73897@debbugs.gnu.org \
    --cc=rodrigo-mailing-lists@morales.pe \
    /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).