guelfey / go.dbus

Native Go bindings for D-Bus
BSD 2-Clause "Simplified" License
124 stars 42 forks source link

Use launchctl to obtain session bus address on OS X #30

Closed jessevdk closed 10 years ago

jessevdk commented 10 years ago

The "standard" way to launch dbus on OS X is through launchd which is responsible for allocating a unix domain socket and then passing it to dbus. This patch splits out a platform specific method to obtain the session bus if DBUS_SESSION_BUS_ADDRESS is not set. On OS X launchctl is queried while on other platforms dbus-launch is used as before.

jessevdk commented 10 years ago

I'm sorry, I'm not really used to github pull requests. I'll shortly open up a new (and hopefully correct) PR