This forum has been archived. All content is frozen. Please use KDE Discuss instead.

how to start Dolphin from terminal emulator inside KDE

Tags: None
(comma "," separated)
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
Dear all,
is it possible to kick off Dolphin from terminal emulator inside KDE? If yes, how?

regards,
ethereal1m
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Run the following command: "dolphin"


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
I got this:
Code: Select all
<unknown program name>(6690)/: KUniqueApplication: Cannot find the D-Bus session server:  "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."

<unknown program name>(6689)/: KUniqueApplication: Pipe closed unexpectedly.

what does this mean?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Which terminal emulator are you using and how is it being launched? It should work fine if you run it from KRunner...

This indicates that Dolphin is unable to reach the D-Bus user session bus, thus making it unable to interact with KDE services such as KRunner, KDE Daemon and KLauncher.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
i use Konsole. Oh, I just realized that that error comes when I'm su as root. How can I kick dolphin using kdesu?

when i do "kdesu -c dolphin", I got:
Code: Select all
No protocol specified
kdesu: cannot connect to X server :0.0

I don't understand this.

thanks
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
ok, i got this,
i just do
Code: Select all
kdesu dolphin


in regular user environment
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Usually D-Bus will launch a user session bus if one isn't running, so this issue shouldn't happen. Try switching to root using "su -" instead...


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
I try using "su -" and kick dolphin from there, but got:
Code: Select all
<unknown program name>(5347)/: KUniqueApplication: Cannot find the D-Bus session server:  "dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
"

<unknown program name>(5346)/: KUniqueApplication: Pipe closed unexpectedly.

Similar to previous error but not identical
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
It looks like your distribution doesn't copy over the X authentication information... is $DISPLAY set?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
set to
Code: Select all
localhost:0.0
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Its probably an authentication error, copy /home/user/.Xauthority to /root/.Xauthority before trying to run Dolphin.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
I copy .Xauthority user to /root/ but still got the same error....
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately I don't know anything else regarding X authentication.... Try contacting your distribution for further information regarding how to authorise root applications to use your user X server.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
My original problem was unable to run an editor from "kdesu dolphin" because of an existing bug. I can do the workaround by calling the editor using kdesu from terminal emulator.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]