You are not logged in.

#1 2024-11-12 00:48:15

chueewowee
Member
Registered: 2012-03-14
Posts: 9

sudo btrfs-assistant not working under wayland

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

#2 2024-11-12 22:45:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,196

Re: sudo btrfs-assistant not working under wayland

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

#3 2024-11-14 20:16:36

Funny0facer
Member
From: Germany
Registered: 2022-12-03
Posts: 153

Re: sudo btrfs-assistant not working under wayland

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

#4 2024-11-14 21:18:09

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,402
Website

Re: sudo btrfs-assistant not working under wayland

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.

Offline

#5 2024-11-14 22:43:18

seth
Member
Registered: 2012-09-03
Posts: 58,698

Re: sudo btrfs-assistant not working under wayland

Funny0facer wrote:

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

Board footer

Powered by FluxBB