From e53a111a3e03fb5cbf0386c963c589ba0660fdf6 Mon Sep 17 00:00:00 2001 From: John Freed Date: Tue, 7 Sep 2021 02:34:13 +0200 Subject: [PATCH] Updated DBus service (markdown) --- DBus-service.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/DBus-service.md b/DBus-service.md index 1af2e2b..1e969d3 100644 --- a/DBus-service.md +++ b/DBus-service.md @@ -19,7 +19,10 @@ brew install dbus brew services start dbus ``` -Then RESTART YOUR MACHINE (I dont know why this is needed, but it is needed for the above commands to work) +The environment variable DBUS_LAUNCHD_SESSION_BUS_SOCKET needs to be set. If it has not been, you will see error messages similar to +those in the Troubleshooting section below. If that happens, issue this command: + +```export DBUS_LAUNCHD_SESSION_BUS_SOCKET=$(launchctl getenv DBUS_LAUNCHD_SESSION_BUS_SOCKET)``` ### System bus @@ -125,3 +128,7 @@ exit 0; ... Environment variable `DBUS_SESSION_BUS_ADDRESS` needs to be set. See [#394](https://github.com/AsamK/signal-cli/issues/394) and links to other issues in it. + +Under Mac OSX, the environment variable `DBUS_LAUNCHD_SESSION_BUS_SOCKET` needs to be set (see above). This can be done by issuing the command + +```export DBUS_LAUNCHD_SESSION_BUS_SOCKET=$(launchctl getenv DBUS_LAUNCHD_SESSION_BUS_SOCKET)```