Monday 5 September 2011

How to Disable the Resume Checkbox in Lion while Shutting Down


There are many useful as well as annoying features in OS X Lion and one of them is the small checkbox that appears while you shutdown your Mac. In that shutdown dialog box, there is a checkbox stating “Reopen windows when logging back in”. it is a big hassle to manage this checkbox each and every time you shutdown the computer. You can luckily turn this button ineffective by performing a terminal trick. The following script will disable the feature but still the shutdown dialog box will pop up. The point is that windows and the apps will not restore regardless of the condition of the check box.
You have to paste this script within the terminal so that it removes the temporary file and disables the checkbox.
curl http://goo.gl/Z4EFC -L -s -o ~/fixlogin.sh && chmod +x ~/fixlogin.sh && sudo ~/fixlogin.sh ; rm ~/fixlogin.sh
In case you want to withdraw this action and enable the checkbox in future, you can write this command.
sudo defaults delete com.apple.loginwindow LoginHook

No comments:

Post a Comment