You are not logged in.
I have the same problem, same error, when attempting to use btrfs-assistant as root, under wayland.
I do have the xcb-util-cursor installed from extra repo.
sudo btrfs-assistant -l
[sudo] password for xxxxxx:
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :0
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, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, xcb, wayland-egl, wayland.
kernal: arch-lts
I haven't a clue yet how to proceed, but suspect its an arch-related or aur package problem, not a problem brough tup by btrfs-assistant.
Moderator Note:
split off from https://bbs.archlinux.org/viewtopic.php?id=300951
While the error looks the same, that thread is about someone running X and not using sudo.
In my opinion these are different issues that each require their won solution
Last edited by Lone_Wolf (2024-11-12 11:03:42)
Offline
You can generally assume GUI clients to not work as root and you shouldn't be trying to start them as root, so this is technically not a bug but a feature.
The author of the tool should implement something like polkit or so to only run the actual needed operations as root. Running a full GUI as root comes with many dangers and is strongly discouraged.
Offline
I can start btrfs-assistant fine with sudo. And when I start it with my runner, it asks for authentication. My guess: you are missing a polkit agent. See https://wiki.archlinux.org/title/Polkit
Offline
Mod note: Moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
I can start btrfs-assistant fine with sudo. And when I start it with my runner, it asks for authentication. My guess: you are missing a polkit agent.
Polkit and sudo are not the same.
That being said: https://gitlab.com/btrfs-assistant/btrf … type=heads looks like the intention is to run it as UID0 and https://gitlab.com/btrfs-assistant/btrf … type=heads runs https://gitlab.com/btrfs-assistant/btrf … type=heads which invokes it via pkexec.
The OP loses connection to the session (w/ the environment variables) and runs into an xauth issue when attempting to run btrfs-assistant on xwayland.
Try to preserve XDG_RUNTIME_DIR and WAYLAND_DISPLAY, https://man.archlinux.org/man/core/sudo … e-env=list
Offline