diff --git a/DBus-service.md b/DBus-service.md index badec07..26a1f83 100644 --- a/DBus-service.md +++ b/DBus-service.md @@ -12,6 +12,8 @@ signal-cli can run in daemon mode and provides an experimental dbus interface. ### MacOS +==== MacOS and signal-cli + MacOS users can run the following commands if needed: ```shell @@ -37,6 +39,18 @@ brew services restart dbus export DBUS_LAUNCHD_SESSION_BUS_SOCKET=$(launchctl getenv DBUS_LAUNCHD_SESSION_BUS_SOCKET) ``` +Note that this will work only from a normal Macintosh desktop session. + +==== MacOS and dbus-send + +In order for `dbus-send` to work correctly, it needs to either be started from a terminal within a normal Mac desktop session, or it needs to have the environment variable `DBUS_SESSION_BUS_ADDRESS` set correctly. + +The command to set the environment variable is: + +``` +export DBUS_SESSION_BUS_ADDRESS=unix:path=$DBUS_LAUNCHD_SESSION_BUS_SOCKET +``` + ### System bus To run on the system bus you need to take some additional steps.