Bug 1218130

Summary: Authorization required, but no authorization protocol defined
Product: [openSUSE] openSUSE Tumbleweed Reporter: Kirelos Namroud <namroudkirelos04>
Component: BasesystemAssignee: Tomas Cech <sleep_walker>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: jubalh, mvetter, simonf.lees
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Kirelos Namroud 2023-12-16 19:34:02 UTC
My environment: 
openSUSE Slowroll, openSUSEway (sway, greetd)
I'm getting the title's error in two specific occasions:
- Running YaST2 with xdg-su to run it from gui and not tui
- Running powertop --calibrate
I'm pretty sure there's an error and that it'd show up in other occasions, but it doesn't always happen (e.g. flatpak applications run properly even when requiring root access).
Still this makes impossible to run a proper powertop calibration and especially using yast2 gui.
Comment 1 hui 2023-12-16 20:32:58 UTC
What is the exact command used to open YaST2?
Comment 2 Kirelos Namroud 2023-12-16 20:40:02 UTC
(In reply to hui from comment #1)
> What is the exact command used to open YaST2?

wofi's yast menĂ¹ entry executes this:

xterm -geom 60x5 -T xdg-su /sbin/yast2 -e -su -c /sbin/yast2

The error is reproducible using:

xdg-su -c yast2

An additional note is that the error does only happen on sway (wayland) but not on icewm (x11)
Comment 3 Michael Vetter 2024-01-30 08:56:22 UTC
Probably a xdg-su thing? Does that work on Wayland?