by default whenever we launch YaST it uses xdg-su. I am using i3 and it is very annoying to have the password prompt to be kept open when using YaST. Also, I want to disable the password prompt, which I have done in sudoers for sudo.
Cheers
by default whenever we launch YaST it uses xdg-su. I am using i3 and it is very annoying to have the password prompt to be kept open when using YaST. Also, I want to disable the password prompt, which I have done in sudoers for sudo.
Cheers
You can already use “sudo” for the “ncurses” version of Yast (command line “yast” or “yast2 --ncurses”).
If you want to use “sudo” for the GUI version of Yast, then you need to have $DISPLAY available. There’s actually a setting in the “sudoers” file where you can add DISPLAY to the list of exported variables. You might also need XAUTHORITY and perhaps some others.
I know a little late but it may be useful in the future.
This can be done in two ways:
Visudo or PolicyKit
https://vinzv.de/en/opensuse-with-sudo-but-convenient/
or
install libgnomesu (sudo zypper install libgnomesu)
then add the following line to your ~/.bashrc or ~/.profile file
export DESKTOP_SESSION=gnome (or xfce)
The first example only works with Yast Manager.
The second works using xdg-su, so you can run any Yast module.
I use TW with I3-gaps and rofi.
I found myself a little bit to figure out
how to use xdg-su to make a graphic password prompt work
Is there a solution to this for tiling window managers? I have used the generic desktop installation for Tumbleweed and use both i3 and qtile but xdg-su is defaulting to xterm for authorization and then stays open after input.
I have installed gnomesu which I would prefer to use but the solutions here do not appear to work. Am I missing something simple?
Cheers
Could not work it out so went with the non elegant solution.
I just ended up replacing xdg-su with gnomesu in the usr/share/applications directory in any desktop file using it:-
grep -rl 'xdg-su' ./ | xargs sed -i 's/xdg-su/gnomesu/g'
At least now I get the behavior I want.
*
“Is speaking to oneself the first sign of madness?”*
Hi
A strange solution, next update will overwrite…?
Even in GNOME, gnomesu isn’t used, for YaST2 (org.opensuse.YaST.desktop) it’s /usr/bin/xdg-su -c /sbin/yast2
…
[QUOTE=malcolmlewis;3075924]Hi
A strange solution, next update will overwrite…?
Even in GNOME, gnomesu isn’t used, for YaST2 (org.opensuse.YaST.desktop) it’s /usr/bin/xdg-su -c /sbin/yast2
…[/QUOTE]
Agreed Malcolm, but I could not find a solution to xdg-su defaulting to using xterm on the tiling window managers hence my strange solution