You are not logged in.

#1 2025-06-25 18:36:47

muthuh
Member
From: Ireland
Registered: 2013-08-20
Posts: 14

[SOLVED] Optional 'qt6-wayland' for the 'rpi-imager' when on Wayland.

How do I suggest an [optional] dependency for the 'rpi-imager' when not on an X-based environment please?
The GUI doesn't start until the 'qt6-wayland' is installed, however there in no mention of such dependency in the package.
How do I suggest it pls? Thank you.
/SM

P.S. On a side note the process needs elevated privileges but when run via a 'sudo' it fails with the following;
----
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
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, vnc, xcb, wayland, minimalegl, vkkhrdisplay, wayland-egl, offscreen, minimal, linuxfb.
Aborted
----
Any advice there I wonder? Thanks in advance.

Last edited by muthuh (2025-06-26 17:35:13)

Offline

#2 2025-06-25 18:49:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,593

Re: [SOLVED] Optional 'qt6-wayland' for the 'rpi-imager' when on Wayland.

It doesn't use qt6-wayland, it uses qt6. When qt6-base got pulled in, you got

qt6-wayland (optional) - to run Qt6 applications in a Wayland session

Offline

#3 2025-06-25 18:51:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,064

Re: [SOLVED] Optional 'qt6-wayland' for the 'rpi-imager' when on Wayland.

You'd add that dependency to every tool to ever exist that's making use of qt6. If you're installing qt6 on a wayland environment, install qt6-wayland.  qt6-base has the optional dep, pacman will have told you.

You should in general seek to avoid running GUI tools as root, and the optional dependencies you are wondering about do actually mention a dep on udisks2 for regular user use, which is the process you should be using. Which in turn will likely require polkit, which is the tooling you should be using for fine granular privilege escalation.

Offline

#4 2025-06-26 17:33:57

muthuh
Member
From: Ireland
Registered: 2013-08-20
Posts: 14

Re: [SOLVED] Optional 'qt6-wayland' for the 'rpi-imager' when on Wayland.

Okay, great. Thanks for clarifications, both of you.

Offline

#5 2026-02-17 01:53:02

diegorodriguezv
Member
Registered: 2026-02-16
Posts: 1

Re: [SOLVED] Optional 'qt6-wayland' for the 'rpi-imager' when on Wayland.

Hello.
This has nothing to do with dependencies. It's a bug with the program. It has to be run with sudo so it can access the drive low level, but the root user can't connect to the X server.
The bug has been reported here: https://github.com/raspberrypi/rpi-imager/issues/1322
And the workaround is to use xhost:

sudo pacman -S xorg-xhost
xhost +SI:localuser:root
sudo rpi-imager

Offline

#6 2026-02-17 15:56:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,593

Re: [SOLVED] Optional 'qt6-wayland' for the 'rpi-imager' when on Wayland.

That is a separate issue, and the OP isn't on X, so your solution doesn't make a lot of sense.

Offline

#7 2026-02-17 16:04:15

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,550
Website

Re: [SOLVED] Optional 'qt6-wayland' for the 'rpi-imager' when on Wayland.

Mod note: Closing this solved thread to prevent further necromancy and hijacking.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

Board footer

Powered by FluxBB