Updated DBus service (markdown)

John Freed 2021-09-10 02:10:25 +02:00
parent 0d964618c4
commit abd2ece26f

@ -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.