Mac OS X Lion has one Feature that is “Reopen windows when logging back in”.When you Reboot or Logout your MAC, you get a dialog window with a checkbox next to “Reopen windows when logging back in” that restores all of your currently open applications and windows.
Many users may like this one and some users don’t want this one.If you are a one of the user don’t want this and want Get rid of this “Reopen windows when logging back in” in Mac OSX completely, then this article is for you.
How to Get Rid of “Reopen windows when logging back in” in MAC OSX Lion;
One script will disable this feature from Mac OSX Lion.This script only remove the Checkbox “Reopen windows when logging back in”,Dialog window still popup.
Paste the following into a single line within the Terminal:
curl http://goo.gl/Z4EFC -L -s -o ~/fixlogin.sh && chmod +x ~/fixlogin.sh && sudo ~/fixlogin.sh ; rm ~/fixlogin.sh(The above text is intentionally small so that it will fit on a single line)
If you ever want to revert back to the default behavior of this OS X Lion feature, just type the following defaults write command:
sudo defaults delete com.apple.loginwindow LoginHook
And you’ll be back to be able to select window restore based on that checkbox’s choice.
Please, don’t forget to subscribe to our fantastic RSS feed free newsletter, join SpicyTricks community on Facebook, follow us on Twitter! If you enjoyed the our posts we humbly ask you to comment, and help us spread the word!