node-dbus-next
node-dbus-next copied to clipboard
Generalized fetching of uid and add support for DBUS_UID env var
Solves #75
I don't like the idea of an env var. Does process.getuid() not give you the right value?
I don't like the idea of an env var. Does
process.getuid()not give you the right value?
No it doesn’t, because the process is running under macOS and is connecting to DBus on another machine through TCP. A nicer solution could be to add the uid to the params of the bus constructor. I just choose the env var approach because it was simpler to do.