Skip to content

Instantly share code, notes, and snippets.

@jmercouris
Last active June 10, 2019 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmercouris/b98a3f3e24c47175aa09ea6010b9ef5e to your computer and use it in GitHub Desktop.
Save jmercouris/b98a3f3e24c47175aa09ea6010b9ef5e to your computer and use it in GitHub Desktop.
(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)))
--------------------------------------------------
> echo $DBUS_LAUNCHD_SESSION_BUS_SOCKET
/private/tmp/com.apple.launchd.3vLn74rWFQ/unix_domain_listener
> echo $DBUS_SESSION_BUS_ADDRESS
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment