LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-10-2024, 11:31 AM   #1
Sacha_D
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Rep: Reputation: Disabled
Question 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?
 
Old 03-10-2024, 02:05 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,826
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
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.
 
Old 03-14-2024, 06:13 PM   #3
Sacha_D
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
/usr/bin/xdg-su -c /sbin/yast2
 
Old 03-15-2024, 04:40 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,913

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
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
 
  


Reply

Tags
gnome 3, gui, opensuse, yast, yast2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
YaST GUI Won't start programs!? nuro305 SUSE / openSUSE 5 06-25-2008 11:09 PM
YaST GUI in 10.2: No GUI ndhenry SUSE / openSUSE 2 01-25-2007 04:04 PM
YaST Category Tools won't run central_texan SUSE / openSUSE 7 06-27-2006 10:14 AM
YaST .pot files and customizing YaST strangedub SUSE / openSUSE 0 05-12-2005 04:41 PM
Newbie problem: Starting YAST gives me "-bash: yast: command not found". cattleya Linux - Software 9 11-20-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration