Linux – dbus-launch terminated abnormally with the following error: No protocol specified

arch linuxd-busx11

After a recent upgrade in my Arch Linux x64 system, I keep getting this warning message after installing or removing packages with pacman.

(gconftool-2:5207): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
/usr/bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.

So, far I have not seen any ill effects from this (that I know of), but I would like to make this warning go away.

EDIT

I can consistently reproduce this by installing or uninstalling GNOME Do. Both of the following commands result in the output above.

$ sudo pacman -S gnome-do
$ sudo pacman -Rns gnome-do

Running xhost + seems to temporarily alleviate the warning (at least until I reboot). I can run xhost - and the warning returns.

UPDATE
This problem went away after a few upgrades (i.e. pacman -Syu).

Best Answer

Try:

export $(dbus-launch)

and then try any dbus based commands.

Related Question