sidorares / dbus-native

D-bus protocol client and server for node.js written in native javascript
Other
261 stars 93 forks source link

Please support "launchd:" address family type #95

Open JetForMe opened 9 years ago

JetForMe commented 9 years ago

DBus 1.10 supports launchd addresses directly, according to the spec.

They take the form launchd:env=SOME_ENV_VAR. The examples I've found on line result in

launchd:env=DBUS_LAUNCHD_SESSION_BUS_SOCKET

I'm currently connecting to that bus with

dbus.sessionBus({ busAddress : "unix:path=" + process.env.DBUS_LAUNCHD_SESSION_BUS_SOCKET.toString() });
sidorares commented 9 years ago

in addition to encoding values and passing vie busAddress you can use host, port and socket directly:

dbus.sessionBus({ soket: process.env.DBUS_LAUNCHD_SESSION_BUS_SOCKET } )

sidorares commented 9 years ago

but I'm keen to support all transports in busAddress string

JetForMe commented 9 years ago

Oh yeah, that's tidy, too. Admittedly, the launchd: support is a bit minor. More important is that I can't get it to connect using socket or busAddress (see #96)