⚡ How to permanently stop Spotify from opening at login on macOS?
Spotify on macOS still opens at login even after removing it from Login Items and running launchctl disable.
Reason:
● It uses an embedded helper (Spotify.app/Contents/Library/LoginItems/StartUpHelper.app).
● backgroundtaskmanagementd (BTM) re-enables the launchd job on reboot unless Spotify itself disables it.
Fix 1: Quit Spotify, then set
Fix 2: Block
Check signature still passes:
app.autostart-mode="off" in its prefs file and disable the launchd job.shell
echo 'app.autostart-mode="off"' >> ~/Library/Application\ Support/Spotify/prefs launchctl bootout gui/$(id -u)/com.spotify.client.startuphelper launchctl disable gui/$(id -u)/com.spotify.client.startuphelper
StartUpHelper at the kernel level so Spotify can never run it again.
Deleting the file breaks Spotify.app code signing. Setting 000 breaks codesign read checks.
Setting 644 + uchg strips execute bits (kernel rejects execve with EACCES) while keeping the file readable for codesign.
shell
HELPER="/Applications/Spotify.app/Contents/Library/LoginItems/StartUpHelper.app/Contents/MacOS/StartUpHelper" chmod 644 "$HELPER" chflags uchg "$HELPER"
codesign --verify --deep --strict /Applications/Spotify.app
Check BTM state: sfltool dumpbtm | grep -A 12 StartUpHelpercommit 1b97808
Step 1: Uninstall Spotify 😅
I am only half joking. I have it installed on my phone but haven't had it installed on a laptop for years now.
I had to do something similar to stop Microsoft Teams opening at startup. There were like 4 helpers in various places. So annoying when the settings UI doesn’t list it as a startup item or in the “open in background” bit