LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   YaST won't run in gui (https://www.linuxquestions.org/questions/suse-opensuse-60/yast-wont-run-in-gui-4175734756/)

Sacha_D 03-10-2024 11:31 AM

YaST won't run in gui
 
Hello. I installed OpenSuSe Thumbleweed with GNOME. I did something yesterday and YaST2 wont run today in gui mode:

Code:

aleksandr@ws:~> gnomesu "yast2 --gtk sw_single"

(gnomesu:610): Gtk-WARNING **: 19:26:00.385: gtk_window_set_titlebar() called on a realized window
aleksandr@ws:~>

And it outputs nothing.

It works good in terminal with ncurses interface:
Code:

aleksandr@ws:~> sudo yast2
What can be a problem?

mrmazda 03-10-2024 02:05 PM

Different problem here in TW 20240309 in Plasma session. 'sudo yast2 --qt sw_single' or 'sudo yast2 sw_single' opens ncurses instead of GUI YaST2. If instead logged in as root, then 'yast2 sw_single' opens QT GUI instead of ncurses.

Sacha_D 03-14-2024 06:13 PM

/usr/bin/xdg-su -c /sbin/yast2

pan64 03-15-2024 04:40 AM

su and sudo does not handle DISPLAY very well. That's why yast started in ncurses mode.
see for example here: https://askubuntu.com/questions/2700...l-applications
The common solution is to run GUI as user and use a graphical sudo clone, like gnomesu, which can manage it. Just actually gnomesu is almost abandoned. xdg-su looks also unmaintained. gksu is deprecated too.

It looks like this is the more or less official answer: https://www.suse.com/support/kb/doc/?id=000020963


All times are GMT -5. The time now is 08:15 PM.