[MacPorts] #28271: DBUS_SESSION_BUS_ADDRESS is not set and dbus-launch cannot work
MacPorts
noreply at macports.org
Thu Feb 3 14:29:42 PST 2011
#28271: DBUS_SESSION_BUS_ADDRESS is not set and dbus-launch cannot work
------------------------------+---------------------------------------------
Reporter: ionutg@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: | Port: dbus
------------------------------+---------------------------------------------
In the current setup, dbus-daemon is started from launchd which then sets
DBUS_LAUNCHD_SESSION_BUS_SOCKET to communicate the location of the unix
socket. However, unless DBUS_SESSION_BUS_ADDRESS is set, dbus-launch will
automatically resort to --autolaunch, which needs X11, which is not
compiled in.
The current situation is a problem for meld
[http://lists.macosforge.org/pipermail/macports-
users/2011-January/023218.html], used to be a problem for kde4
[http://www.mailinglistarchive.com/html/fink-
users at lists.sourceforge.net/2010-04/msg00125.html] and should be a problem
for any process which connects by calling dbus-launch (are there other
ways? I am totally new to dbus).
The workaround I have found so far is to enable
/Library/LaunchDaemons/org.freedesktop.dbus-system.plist and respectively
/Library/LaunchAgents/org.freedesktop.dbus-session.plist and modify
~/.bash_profile
export
DBUS_SESSION_BUS_ADDRESS=unix:path=$DBUS_LAUNCHD_SESSION_BUS_SOCKET
I don't know what the standard way to connect to the dbus is, but dbus-
launch.c can easily be patched to search for
DBUS_LAUNCHD_SESSION_BUS_SOCKET.
Ionut
--
Ticket URL: <https://trac.macports.org/ticket/28271>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list