Prevent Finder from launching when quitting all applications

applicationsfinder

I have enabled the option to quit Finder. However, if Finder is the only remaining open app and I quit it, it will launch again.

Personally I don't find the scenario of having all apps closed that nonsensical… I might want to close everything, and then open a different set of apps (because I switched from coding to making music, for example)

Can I prevent this behavior?

Best Answer

If you open Terminal and enter "launchctl list" it will list all of the programs kept running by launchd, the "launch daemon" that keeps system software running even after it is quit/force quit/killed/crashed.

Scroll to the top the results, and you will see "com.apple.Finder" keeping the Finder always running as long as the OS is running. Finder does much more than browse the file system, and it should always be running (same for the Dock). However, if you want to quit it and keep it from relaunching, you will need to remove it from launchctl first. I wouldn't do this personally, but here's how:

  • Open Terminal
  • Enter: sudo launchctl remove com.apple.Finder
  • Enter your password and hit return.

Now you should be able to quit Finder without it relaunching.

To undo this:

  • Open Terminal
  • Enter: sudo launchctl load System/Library/LaunchAgents/com.apple.Finder.plist
  • Enter your password and hit return.
Related Question