You are not logged in.

#1 2008-09-23 15:44:12

amadlopes
Member
Registered: 2007-06-28
Posts: 35

kdesu dolphin

Hi,

When i try to 'alt+f2 kdesu dolphin' the dolphin opens but i can't see anything and the window has a message "Could not start process Cannot talk to klauncher: The name org.kde.klauncher was not provided by any .service files.
I already installed kde4 in 4 times in 3 machines (this is the 2nd time i install in this machine) and all have this probleme. Is this a bug or am i doing something wrong ?

Thank you for the help.

Offline

#2 2008-09-23 16:05:48

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: kdesu dolphin

I notice the same issue on my machine. But I found that it is a dbus rights access to the user resources.
To give access to the resources it is necessary to use the dbus-launch command :
kdesu dbus-launch dolphin
read 'man dbus-launch' for more details.

Offline

#3 2008-09-23 16:24:59

amadlopes
Member
Registered: 2007-06-28
Posts: 35

Re: kdesu dolphin

berbae wrote:

I notice the same issue on my machine. But I found that it is a dbus rights access to the user resources.
To give access to the resources it is necessary to use the dbus-launch command :
kdesu dbus-launch dolphin
read 'man dbus-launch' for more details.

Thank you i was geting nuts with this.

Offline

#4 2008-09-23 17:58:11

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: kdesu dolphin

working on mine kde4 without problems wink


Zygfryd Homonto

Offline

#5 2008-09-23 21:50:07

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: kdesu dolphin

I remarked that the dbus-launch command loses the connection to the user X server ("cannot connect to X server :0"), so the method is not ideal after all.
It only permits system commands (copying, moving, deleting, ...) with root privileges, and not the use of graphical applications launched from Dolphin (kwrite, ...).
It seems that it is either the dbus access or the X server access, but not both.
If someone could find a solution it would be nice to share it.
Maybe we have to wait for future KDE 4 releases for a better solution.

Edit : there is also the rootactions-servicemenu-kde4 package in AUR. The service menu gives root privileges, from a user launched dolphin, to run system or graphical commands on selected files or directories. So it seems easier to use it than to launch a root dolphin on its own, without graphical access.

Last edited by berbae (2008-09-24 16:48:38)

Offline

#6 2008-09-24 16:46:28

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: kdesu dolphin

I found a way to have the dbus access and the X server access with Krunner.;)
Here is the command line to enter :
xhost +;kdesu dbus-launch dolphin

and after getting out of dolphin :
xhost -

I did not find how to have all in one line, because all the commands on a line seem to be ran at once by krunner. Krunner doesn't wait for the end of each commands.

The rootactions-servicemenu-kde4 has the inconvenience to necessitate to enter the root password for each actions which we want to run with root privileges, and I find that not very practical.

I hope that method will be satisfying enough for now, waiting for something more elegant in the future.

Last edited by berbae (2008-09-24 17:04:03)

Offline

#7 2008-09-24 16:55:27

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: kdesu dolphin

berbae wrote:

xhost +;kdesu dbus-launch dolphin

yeap, I have 'xhost +' in my bash profile wink


Zygfryd Homonto

Offline

Board footer

Powered by FluxBB