From 4b52ca21770c7c9e1af7fa4ad998cd058541d9d4 Mon Sep 17 00:00:00 2001 From: John Freed Date: Tue, 7 Sep 2021 15:31:17 +0200 Subject: [PATCH] Updated DBus service (markdown) --- DBus-service.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/DBus-service.md b/DBus-service.md index adf869d..13e6b97 100644 --- a/DBus-service.md +++ b/DBus-service.md @@ -19,12 +19,18 @@ brew install dbus brew services start dbus ``` -The environment variable DBUS_LAUNCHD_SESSION_BUS_SOCKET needs to be set correctly. If it has not been, you will see error messages similar to -those in the Troubleshooting section below. If that happens, issue this command: +The environment variable DBUS_LAUNCHD_SESSION_BUS_SOCKET needs to be set correctly. 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)``` -In particular, this command needs to be issued if you manually start or restart the Dbus service: +If the DBus service is not running at all, the environment variable will remain unset after issued this command. To test it: + +```printenv DBUS_LAUNCHD_SESSION_BUS_SOCKET``` + +You should see a response like: +```/private/tmp/com.apple.launchd.DoArnyRzbQ/unix_domain_listener``` + +If the response is empty, you must manually restart the DBus service and set the environment variable: ``` brew services restart dbus