How do I disable "modern login items" (shared helper applications) which don't show up in system login items? [duplicate]

Spotify auto-launches even if I tell it not to from within its own preferences.

It does not seem to be started through any of the "classic" means of auto starting a program - i.e. Login Items or user or global launch agents.

Is there any way to turn off this sort of 'modern login items' in general? (official name: shared helper applications)

Extra points for preventing auto-launching of any apps, especially after MacOS crashed.


There are several ways that programs can automatically start in macOS:

First check "Login Items" which are found in System Preferences after clicking the "Users & Groups" icons. I understand that you have already checked here and did not find Spotify.

Another possibility is that Spotify have been set to open at login from the dock. You can right-click the Spotify icon in the dock, and then in the Options menu make sure that "Open at login" is not enabled.

Similarly if you have left Spotify running when you power down the Mac then by default the app and open windows will be opened again after rebooting. You can avoid this by ensuring that you close Spotify before logging out or rebooting, or change the setting in general by clicking the "General" icon System Preferences and making sure there's a checkmark in "Close windows when quitting an app".

A third possibility is that it is possible to create configuration files for launchd that will automatically start programs at boot or login. You'll find these configurations files in:

~/Library/LaunchAgents/
/Library/LaunchAgents/
/Library/LaunchDaemons/

Note that the ~ characters means your user's home folder.

A final possiblity is that applications in macOS can come with a "shared helper application". Essentially this application would provide some background service to one or more actual applications from that developer. Some use that helper application to later launch their actual application.

The helper application is located within the application's bundle in the Contents/Library/LoginItems folder. For Spotify that is usually in the following location:

/Applications/Spotify.app/Contents/Library/LoginItems/StartUpHelper.app

You can prevent that from autostarting Spotify by closing the helper app, or making sure that it cannot start (for example by removing the executable bit on the actual executable: /Applications/Spotify.app/Contents/Library/LoginItems/StartUpHelper.app/Contents/MacOS/StartUpHelper)