Lion opens lots of windows automatically after a restart. How can I stop that?
It's very annoying.
Is there a way to stop this?
I found an option in System Preferences ("Restore windows when quitting and re-opening apps") and disabled it but it doesn't seem to affect anything.
Best Answer
What you are experiencing are the benefits of working with resume. A feature introduced with Mac OS X Lion.
Unchecking the box does not have a permanent effect. This can be achieved by manual tweaking.
Disable Resume upon login permanently
Open the Terminal and enter:
This command downloads a script and fully installs it. Voilà, you are done.
If you want to revert to the default behavior of resume in lion, type this.
Kudos to Hexbrain who wrote the script.
Disable Resume when launching apps
You can also disable Resume for applications on a per app basis. See these answers here.