Applications sometimes reopen at start-up in Mountain Lion Despite un-checking the "Reopen windows when logging back in" checkbox when turning off the computer, applications reopen sometimes at the next start-up. Furthermore, this happens also when I quit all the applications manualy before, which is strange. This issue occurs in Mountain Lion (10.8, 10.8.1 and 10.8.2), never actually happend to me in Lion. Maybe it's worth noting that this is not a clean install, but an upgrade from Lion.

Is there any solution how to prevent this (maybe from the Terminal)?
Here are a few places to check:


"Under the hood" locations:


Be careful when working with the plist files in the folders listed below. Some of them may be full programs, others may be "helper apps".
Don't touch any plist files for programs you use that may have "behind-the-scenes" assets.
If the plist filename is ambiguous, you can look inside the plist files for the name of the application. If there are remnants from old programs you have uninstalled or were before upgrade, move the file(s) in question to your desktop one folder at a time (/Library/StartupItems), then reboot.
If your system works as expected (meaning nothing catastrophic happens and the program you were trying to kill is gone), throw the plist files on your desktop away, then proceed to the next folder and repeat the process.
When working with files in the Library folders, you may need to authenticate deletes as an administrator.
/Library/StartupItems
~/Library/StartupItems (if it exists)
/Library/LaunchDaemons
/Library/LaunchAgents
~/Library/LaunchAgents (if it exists)

System Preferences: Take a look at Users &amp; Groups in your System Preferences and click on the Login Items button at the top of the window. Check if any programs that automatically load after reboot are on the list and set to run at login.


While there may be other ways to clean house, including formatting your hard dive and a fresh install of Mountain Lion (Check out Lion Diskmaker for a thumb drive installer for 10.8), these will give you a good start.

Happy cleaning!