FS#5695 - dbus: variable DBUS_SESSION_BUS_ADDRESS not set

Attached to Project: Arch Linux
Opened by Pavel Zheltobryukhov (PavelZh) - Saturday, 28 October 2006, 08:43 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 15 December 2007, 15:31 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Jan de Groot (JGC)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

After upgrade dbus to 0.93, some applications (e.g xchat, thunar) produce followng message during start:

Could not open bus connection: D-BUS error org.freedesktop.DBus.Error.Failed: Unable to determine the address of the message bus

This error message appears, because variable DBUS_SESSION_BUS_ADDRESS not defined. Need to add file (e.g. dbus.sh) to
/etc/profile.d with folowing

export DBUS_SESSION_BUS_ADDRESS="unix:path=/var/run/dbus/system_bus_socket"


(taken from one Gentoo Russian forum)
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Saturday, 15 December 2007, 15:31 GMT
Reason for closing:  Fixed
Additional comments about closing:  no other comments for a long time, assuming fixed
Comment by Jan de Groot (JGC) - Saturday, 28 October 2006, 09:34 GMT
This will not work, as dbus will break your gnome applications in that case. Launch your X environment with something like "dbus-launch --auto-syntax --exit-with-session openbox" from xinitrc.

Using this method with gnome will break gnome in some ways however, as gnome-session takes care of dbus itself.
Comment by Jan de Groot (JGC) - Saturday, 28 October 2006, 10:05 GMT
I'll add a dbus and gnome-keyring start commands to startxfce4 and startkde to fix this issue, for other windowmanagers like openbox, use the method as described in the first comment.
Comment by Allan McRae (Allan) - Saturday, 08 September 2007, 16:03 GMT
Status? Does not appear to be a problem when starting Thunar anymore although the above line is not in startxfce4

Loading...