dbus icon indicating copy to clipboard operation
dbus copied to clipboard

D-Bus Server Address macOS

Open jmercouris opened this issue 6 years ago • 0 comments

When connecting the following is assumed:

(defun session-server-addresses ()
  "Return a list of server addresses for the current session."
  (when-let (string (getenv "DBUS_SESSION_BUS_ADDRESS"))
    (parse-server-addresses-string string)))

on macOS however, particularly D-Bus installed via MacPorts, that information is obtained in the following way:

export DBUS_SESSION_BUS_ADDRESS "unix:path=$DBUS_LAUNCHD_SESSION_BUS_SOCKET"

I therefore suggest to also check the DBUS_LAUNCHD_SESSION_BUS_SOCKET. Do you think this makes sense, or should be handled by the user?

jmercouris avatar Jun 10 '19 11:06 jmercouris