[MacPorts] #28271: DBUS_SESSION_BUS_ADDRESS is not set and dbus-launch cannot work
#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@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
#28271: DBUS_SESSION_BUS_ADDRESS is not set and dbus-launch cannot work ------------------------------+--------------------------------------------- Reporter: ionutg@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: dbus ------------------------------+--------------------------------------------- Changes (by macsforever2000@…): * cc: ionutg@… (removed) * owner: macports-tickets@… => mcalhoun@… Comment: The reporter is automatically Cced. Instead you should Cc the port maintainer(s) in the future. -- Ticket URL: <https://trac.macports.org/ticket/28271#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28271: DBUS_SESSION_BUS_ADDRESS is not set and dbus-launch cannot work -------------------------------+-------------------------------------------- Reporter: ionutg@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: worksforme | Keywords: Port: dbus | -------------------------------+-------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => worksforme Comment: Can't reproduce; Meld works fine for me. I can get the error from the first link if I unload dbus. The writer of that message says he used sudo when loading the session plist, which is simply wrong. -- Ticket URL: <https://trac.macports.org/ticket/28271#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28271: DBUS_SESSION_BUS_ADDRESS is not set and dbus-launch cannot work -------------------------------+-------------------------------------------- Reporter: ionutg@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: worksforme | Keywords: Port: dbus | -------------------------------+-------------------------------------------- Comment(by ionutg@…): How did you compile gtk2? I compiled with +quartz +no_x11 -- Ticket URL: <https://trac.macports.org/ticket/28271#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts