diff --git a/DBus-service.md b/DBus-service.md index ae058a6..5c4bedc 100644 --- a/DBus-service.md +++ b/DBus-service.md @@ -41,9 +41,15 @@ export DBUS_LAUNCHD_SESSION_BUS_SOCKET=$(launchctl getenv DBUS_LAUNCHD_SESSION_B Note that this will work only from a normal Macintosh desktop session. +To use the system bus: +``` +export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/usr/local/var/run/dbus/system_bus_socket +``` +This works either from a desktop session or an SSH session. + #### MacOS and SSH -As mentioned, the command lines above work only from a normal Macintosh desktop session, because `launchctl` is not available via SSH. +As mentioned, the session bus command lines above work only from a normal Macintosh desktop session, because `launchctl` is not available via SSH. To work around this problem, there are two cases: