13

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.

chronospoon
  • 582
  • 1
  • 3
  • 9

1 Answers1

24

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
chronospoon
  • 582
  • 1
  • 3
  • 9
  • Just tried and it works on 14.04 – Antony Aug 05 '14 at 02:19
  • I still get many GConf warnings (failed to connect), but not the same reason (was "Connection refused", it's now "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." Emacs now starts reasonably fast in my ssh -X session, at least. – Gauthier Oct 10 '14 at 12:44
  • you saved my day :) – Sagar Sakre Mar 02 '15 at 06:57
  • Works on 16.10 as well, but I just run it as sudo dbus-launch --sh-syntax – Marcin Nov 18 '16 at 23:27