Ubuntu – glib.GError: No D-BUS daemon running

dbus

When trying to run meld on Ubuntu Desktop 13.04, I get the following error:

$ meld

(meld:1509): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to connect to socket /tmp/dbus-EQeHnPP7h5: Connection refused
Traceback (most recent call last):
   ...
glib.GError: No D-BUS daemon running

I am running as a non-root user, with a X11 forwarding through PuTTY/SSH to Xming.

Best Answer

This bug pointed me to two ways to fix it, of which I used:

eval $(dbus-launch --sh-syntax)

export DBUS_SESSION_BUS_ADDRESS
export DBUS_SESSION_BUS_PID