Skip to content

D-Bus Server Address macOS #24

Description

@jmercouris

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions