Skip to content. | Skip to navigation

Personal tools
Log in
Sections
You are here: Home Software Ubuntu dbus

Ubuntu dbus

Fixinig dbus Session in xubuntu 8.04 (hardy)

Some Applications in (x)ubuntu 8.04 complain about missing dbus daemons. Examples are banshee (which displays a nice message, that explains that the dbus is missing) and f-spot (which simply displays a crash dialog).
If you check your processlist (open Terminal, ps -ef|grep dbus) you will find that dbus is running. There is also a dbus-daemon for your user. So what's going on? All applications are missing an environment variable, that tells them where to find your dbus session. So check that this variable is set. Open up a terminal

user@host:~$ echo $DBUS_SESSION_BUS_ADDRESS
unix:abstract=/tmp/dbus-d8Y6rD59C9,guid=9287ee59f3cbd13ded28b096482fd50c

If you don't get any output it's missing!

put the following in /etc/X11/Xsession.d/10-dbus restart the xserver and everything should be fine

#!/bin/bash
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    # no dbus? launch one!
    eval `/usr/bin/dbus-launch --sh-syntax --exit-with-session`
fi