sidorares/dbus-native

Please support "launchd:" address family type

Opened this issue · 3 comments

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() });

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 } )

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

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)