After installing Konquerer and restarting my laptop i got the following error while trying to open, edit or access files as root from within Terminal (which is existencial for me).
root@linuxBox:/home/v2r#
gnome-open /home/
(gnome-open:2686): GConf-WARNING **: Client failed to connect to the D-BUS daemon: //bin/dbus-launch terminated abnormally with the following error: No protocol specified Autolaunch error: X11 initialization failed.
GConf Error: No D-BUS daemon running
root@linuxBox:/home/v2r# No protocol specified Could not parse arguments: Cannot open display:
Also it seems, that dbus is not installed properly anymore in /bin/
and /usr/bin/
See screenshot:
How would i go about fixing this problem and thank you in advance?!!!
Thank you for your answer SirCharlo! It does not resolve the problem at all. Please note, that it only happens while beeing root!
root@linuxBox:/home/v2r#
gnome-open /home/
(gnome-open:5170): GConf-WARNING **: Client failed to connect to the D-BUS daemon: Failed to connect to socket /tmp/dbus-2RdCUjrZ9k: Connection refused GConf Error: No D-BUS daemon running
root@linuxBox:/home/v2r# No protocol specified Could not parse arguments: Cannot open display:
I had this same problem. In my system the problem is caused for
~/.dbus
being owned by root. Changing ownership me solved the problem for me. I suggest you to check this on your system too.Changing the ownership can be done with the
chown
command. For a single file:For a directory and its children:
So, in this case,
should work.
Try
export $(dbus-launch)
This worked for me on Opensuse 12.1 while running it as a VM.
I also had a problem with dbus and vnc. So I added
to
~/.vnx/xstartup
. It starts gnome session for me!Could you try this?
And retry your command..
SirCharlo's answer worked for me. Same problem on ubuntu 12.04 (precise pangolin). Yeah, I use su (root) also. Shame, shame. Same problem starting emacs too.
The problem seems to be that DBUS_SESSION_BUS_ADDRESS retains its value when you su instead of picking up the value in /root/.dbus/session-bus/
from man dbus-launch:
Use sudo, suedit, gksu.
Or if you MUST use su, then try adding this to your /root/.bashrc:
Removed
/var/lib/dbus/machine-id
and all was betterThe above fix also fixes:
I could run
virt-manager
with the commandroot@localhost# dbus-launch virt-manager
usingsu
I had this issue on my Ubuntu machine. Installing
dbus-x11
resolved the issue:sudo apt install dbus-x11