The error I get is this:
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon.
See http://projects.gnome.org/gconf/ for information.
(Details - 1: Failed to get connection to session: Error connecting: Connection refused)
Failed to open bus: Failed to connect to socket /tmp/dbus-BYC0LHrEHk: Connection refused
Any suggestions?
Instead of letting Gnome run
dbus-launch
to create a random D-Bus address, startdbus-daemon
explicitly early in your X session startup and give it a fixed address likeunix:path=~/.dbus-$HOSTNAME-$DISPLAY
.Given the information in the bug report, you may even be able to get away with
unset DBUS_SESSION_BUS_ADDRESS
and let applications find out the bus address from the root window properties.As of 15.10, the per-session dbus instance is created via an Upstart session job. The job file in question is
/usr/share/upstart/sessions/dbus.conf
. You can replace the default random address by overriding thepre-start script
stanza which specifies the address to use. Create~/.config/upstart/dbus.override
with the following:The fixed address will be used after you next log in.
This is apparently a bug in gconf that already has a fix (if I understood correctly from this bug report). In the meantime, the following should work around the problem:
Or if as me you don't use gnome:
unset DBUS_SESSION_BUS_ADDRESS
tmux can be told to always reset certain env vars:
Based on that it might be appropriate to add DBUS_SESSION_BUS_ADDRES to this option in
~/tmux.conf
:This worked for me.