Bug 115576 - broken YaST launching via Alt-F2 (run application) dialog in GNOME
Summary: broken YaST launching via Alt-F2 (run application) dialog in GNOME
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Beta 4 Plus
Hardware: Other All
: P5 - None : Major
Target Milestone: RC 2
Assignee: Dan Winship
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-07 11:18 UTC by Jakub Friedl
Modified: 2006-05-09 19:43 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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