Skip to content

macOS DBus setup instructions

Giacomo Lacava edited this page Nov 20, 2020 · 1 revision

DBus provides a plist that can be used to manage it like a regular macOS service.

brew install dbus

# link the plist so that it can be launched as a regular macos service
ln -sfv /usr/local/opt/dbus/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents

# then launch
launchctl load ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist

# disable it if you don't want to autostart it at every login. Note: replace 501 with your id, which you can find with `id`
launchctl disable user/501/org.freedesktop.dbus-session

# next time you can start it with:
launchctl start org.freedesktop.dbus-session

# if you want to remove it for good:
launchctl remove org.freedesktop.dbus-session.plist
rm -f ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist

Clone this wiki locally