⛔️ Stop daemons

Some applications are installed with the help of an installer package. And sometimes they tend to make that application auto launch when starting your Mac.

These application don’t use the preferred macOS Login Items solution. But unfortunately they get it done with daemons and agents.

Le quoi?

Both agents and daemons are background tasks that don’t need any user input. The main difference is that an agent runs on behalf of the logged in user and a daemon allows you to specify the user.

There are many places on your system where you can find the definitions of these background tasks.

  • ~/Library/LaunchAgents
  • /Library/LaunchAgents
  • /System/Library/LaunchAgents
  • /Library/LaunchDaemons
  • /System/Library/LaunchDaemons

For more information on this you should go here.

Stop. 🔨 Time.

I’m not going into how you can create them, but I’ll focus on how to stop them. The answer is simple. Look for a configuration file that matches the reverse domain of the app you would like to stop from launching automatically. You can find these configuration files in any of the above directories.

For example:

  • Junos Pulse: /Library/LaunchDaemons/net.juniper.AccessService.plist
  • PostgressApp: ~/Library/LaunchAgents/com.postgressapp.postgres.plist

When you remove these files, the application will stop launching when you startup your Mac. FINALLY! 👊

FYI. Sometimes an app can have launch definitions in many folders. So make sure to check them all out.