You are not logged in.
Pages: 1
Topic closed
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
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
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
Okay, great. Thanks for clarifications, both of you.
Offline
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-imagerOffline
That is a separate issue, and the OP isn't on X, so your solution doesn't make a lot of sense.
Offline
Mod note: Closing this solved thread to prevent further necromancy and hijacking.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
Pages: 1
Topic closed