Search:  
Gentoo Wiki

TIP_dbus_troubleshooting

If you ever start up an application and see the following error or something like it:

 
  WARNING **: Service registration failed.
  WARNING **: Unable to determine the address of the message bus
     

It means the application wants to use D-BUS. D-BUS is a message bus system which allows for applications to communicate with one another. Many applications such as Evince, Epiphany, Evolution, and Liferea are starting to make use of D-BUS's services.

Note: Not really a complete solution. This will allow windowed apps that are having trouble launching from command line, but it completely disable gnome-volume-manager.

In order for applications to communicate with D-BUS, the system message daemon must first be started. To do this, add the following to /etc/rc.conf:


Code: /etc/rc.conf
  dbus_enable="YES"


Next, the GNOME Desktop must be started with D-BUS support. To do this, launch gnome-session from within dbus-launch. For example, if you start GNOME using ~/.xinitrc or ~/.xsession, change the line that execs gnome-session to the following: exec dbus-launch --exit-with-session gnome-session


If you use GDM to start GNOME, create a new GDM session:

nano /etc/X11/dm/Sessions/gnome-dbus.desktop

with the following parameters:


Code: GDM session parameters
 
[Desktop Entry]
Encoding=UTF-8
Name=GNOME with D-BUS
Comment=GNOME Desktop with D-BUS support
Exec=/usr/bin/dbus-launch --exit-with-session /usr/X11R6/bin/gnome-session
TryExec=/usr/local/bin/dbus-launch
Icon=
Type=Application
  

and make it executable

chmod 755 gnome-dbus.desktop

When you log in make sure to pick the new session.

Reference

http://www.pl.freebsd.org/gnome/docs/faq2.html#q16


Edited by --Dirk R. Gently 23:00, 26 March 2007 (UTC)

Retrieved from "http://www.gentoo-wiki.info/TIP_dbus_troubleshooting"

Last modified: Fri, 05 Sep 2008 09:48:00 +0000 Hits: 2,490