diff --git a/DBus-service.md b/DBus-service.md index 0ff8918..ae058a6 100644 --- a/DBus-service.md +++ b/DBus-service.md @@ -58,7 +58,7 @@ ps auxw|grep dbus|grep $(whoami)|grep session If it is running, you can rely on the notion that the most recent listener in /private/tmp is assigned to this version of dbus. (This might not be 100% reliable in the future, so proceed at your own risk.) Use the command: ``` -export DBUS_LAUNCHD_SESSION_BUS_SOCKET=$(find /private/tmp -type s -name unix_domain_listener -print0 | xargs -0 ls -rt|tail -n 1) +export DBUS_LAUNCHD_SESSION_BUS_SOCKET=$(find /private/tmp -user $(whoami) -type s -name unix_domain_listener -print0 | xargs -0 ls -rt|tail -n 1) ``` **Case 2: dbus is not running**