Bug 630

Summary: Launching root dolphin from a desktop fails
Product: Mageia Reporter: Juergen Harms <juergen.harms>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: balcaen.john, dmorganec, zen25000
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: dolphin-4.6.1-4.mga1 CVE:
Status comment:
Attachments: Desktop item used for trying to launch root Dolphin

Description Juergen Harms 2011-04-04 09:45:33 CEST
Description of problem:

There is no evident way to launch root dolphin from a desktop item. The most evident solution is to create desktop item with "Exec=sudo dolphin" - and "terminal=1" (see attachment), but that does not work - nor do alternatives based on kdesu or su with dbus-launch (no problem to create desktop items for - say - kwrite or kfind)

Version-Release number of selected component (if applicable):dolphin-4.6.1-4.mga1


How reproducible:


Steps to Reproduce:
1.Create the desktop item
2.Launch the desktop item
3.

I am asked to provide my root password. After replying with the correct password (sudoers correctly set up) the window goes away, no dolphin.

This problem has been mentioned by other users on the mageai ML some time ago, the recent updates of KDE did not help.

Maybe that helps: launching the attached desktop item (I created it with kmenuedit) creates an item in .xession-errors

klauncher(5483) KRunMX1::expandEscapedMacro: -miniicon isn't supported anymore (service "ddd" ) 




Reproducible: 

Steps to Reproduce:
Comment 1 Juergen Harms 2011-04-04 09:47:16 CEST
Created attachment 191 [details]
Desktop item used for trying to launch root Dolphin

The contents of this desktop item have been created by kmenuedit - no manual editing done.
Comment 2 John Balcaen 2011-04-04 12:29:57 CEST
It would be better to use /usr/lib64/kde4/libexec/kdesu instead of sudo (some people don't have sudo installed/configured.

CC: (none) => balcaen.john

Comment 3 Barry Jackson 2011-04-04 15:26:57 CEST
I think everyone is over complicating an easy task here.
Simply create a standard launcher for Dolphin by dragging it's icon from the menu (kickoff) to the desktop or folder view and "copy here"
Now right click the icon -> properties -> application tab -> advanced option -> check "run as different user" -> enter "root"
OK, OK and it's done - works for me.

CC: (none) => zen25000

Comment 4 Juergen Harms 2011-04-04 17:03:12 CEST
More: much better, I agree - but kdesu did not work, at least on 32-bit systems. After your message I checked again - kdesu evidently got fixed in the meantime, sorry I did not check again before posting the bug.

How about gnome users? I think, they normally do not install kdesu - I still do not manage to make sudo dolphin work.

PS: the corrected kdesu is great, it now even allows to launch a root konsole!
Comment 5 James Kerr 2011-04-04 18:39:55 CEST
(In reply to comment #4)
> How about gnome users? 

In the unlikely event that I wanted to run nautilus as root, I would launch it from a root terminal. Fedora has a thing called beesu, which I've never used, but I believe that it functions in a way similar to kdesu.
Comment 6 Juergen Harms 2011-04-04 19:23:13 CEST
Trying to do some summing up (profiting to iterate my point of view) (-
- different users - different preferences, that is Unix
- the distro provides a framework, in which each user can customise his environment needed for working as root (via creating desktop items, arranging them into menus ...)
- since kdesu works now (if I understand right, using "advanced" -> "run as different user" is just another way to use kdesu), KDE users have a perfect solution for customising tools for working with root priviledge
- the question remains whether gnome users have a similar general facility to customise their tools - I agree, launching from a root terminal is always possible, but second-best for me - how much more agreeable to be able to wrap such root functions into a desktop item, a menu-item if you need them frequently!

Mageia is just defining "the feeling" of the coming release - asking for the availability of this kind of facility is an important issue. The question remains
- does sudo <something> presently works - I have doubts, I just typed into a user terminal "sudo kwrite" - failure (I think to remember that it worked - say - 10 days back)
- can sudo be used from a desktop item? - is that needed? (I think yes: as part of an infrastructure for customising tools with root-privilege.
Comment 7 James Kerr 2011-04-05 14:58:03 CEST
Gnome has gksu, which has not been imported yet. I've opened a request. Perhaps someone who has used gksu on mdv2010.1 could confirm my understanding that it is equivalent to kdesu:

https://bugs.mageia.org/show_bug.cgi?id=640
Comment 8 Juergen Harms 2011-04-05 18:08:46 CEST
With kdesu working and the request for gksu filed, I think this bug is not pertinant any more and can be closed. Sorry - I guess I should have launched this as a discussion in the forum before submitting a bug.
Comment 9 D Morgan 2011-04-05 19:54:24 CEST
tks closing.

Status: NEW => RESOLVED
CC: (none) => dmorganec
Resolution: (none) => FIXED

Comment 10 Barry Jackson 2011-04-06 01:54:26 CEST
(In reply to comment #8)
Juergen - here's an icon for you ;-)
http://i115.photobucket.com/albums/n287/barjac_2006/th_root-system-file-manager.png