Bug 115576

Summary: broken YaST launching via Alt-F2 (run application) dialog in GNOME
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Jakub Friedl <jfriedl>
Component: GNOMEAssignee: Dan Winship <danw>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: sbrabec, sreeves
Version: Beta 4 Plus   
Target Milestone: RC 2   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jakub Friedl 2005-09-07 11:18:20 UTC
launching YaST via GNOME "run application" (Alt-F2) is broken and inconsistent:

if you enter "yast" - yast icon is not shown and yast cannot be launched (error
message) (in KDE, this works)

if you enter "yast2" - yast icon is shown but yast cannot be launched, same
error message

if you enter "/sbin/yast2" (which is also listed in the list of known
applications), yast is launched, but user is not asked for the root password.
therefore, only media check module is usable.

also, yast launched via "Run Application" dialog has a different theme than yast
launched via Application or Desktop GNOME menus. "Run Application" uses correct
theme, same as if launched from command line. Yast launched via GNOME menus has
a darker, uglier theme.
Comment 1 JP Rosevear 2006-05-08 19:11:09 UTC
Ok, so a couple issues here.  The run dialog strips off the path in the .desktop file to match the icon.  I believe libgnomeui had some code to use gnomesu if appropriate (maybe gnome-desktop needs that? Scott and Stansilav dug into this code a while back).  The Yast .desktop files should have X-KDE properties as well hinting about the need for setuid that we could use.
Comment 2 Dan Winship 2006-05-09 19:43:33 UTC
> if you enter "yast" - yast icon is not shown and yast cannot be launched
> (error message) (in KDE, this works)

Does KDE's run dialog let you launch apps by their "human-readable" names in addition to the names of their binaries? GNOME's doesn't. If /sbin is in your path, you can type "yast" into the dialog and check "run in terminal" and you'll get a nice textmode yast interface.

> if you enter "yast2" - yast icon is shown but yast cannot be launched, same
> error message

Should be fixed now (it will take the path from the .desktop file if the .desktop file has a path and the command you typed doesn't).

> if you enter "/sbin/yast2" (which is also listed in the list of known
> applications), yast is launched, but user is not asked for the root password.
> therefore, only media check module is usable.

Should also be fixed now; if the command matches a .desktop file, we use gnome_desktop_item_launch() to start it, which knows to look at X-KDE-RootOnly.

> also, yast launched via "Run Application" dialog has a different theme
> than yast launched via Application or Desktop GNOME menus. "Run
> Application" uses correct theme, same as if launched from command line.
> Yast launched via GNOME menus has a darker, uglier theme.

I'm guessing that's probably fixed now. If not, it's a separate bug.

Fixes should be in SLED10 rc2, but not SUSE 10.1.0