This is the most unOS X thing I have ever seen that unchecking the box has no memory. This means if you really want the Clean start you have to manually uncheck the box for each Restart or Shut Down.
The lack of memory for the checkbox has to be a bug in OS X 10.7. A better userinterface solution would be to add the box to the System Preferences/General settings or at least have link it to be unchecked when the user unchecks the Restore opton
Thanks to all that resonded. Nothing we can do until the OS X Design Team takes action.
The box in the General System Preferences should work for what you want. It appears it is not being set.
I played around with it and it seemed to not set the preference every time, which may be what you are seeing.
First, open up your ~/Library/Preferencese/ByHost folder and delete the com.apple.loginwindow.<long alpha-numeric string>
Then, copy and paste this command into Terminal:
defaults write com.apple.loginwindow TALLogoutSavesState 0
The file you deleted is the one that stores which apps and windows are open.
The command directly writes the preference for saving the logout state.
You can read the setting by using this command, although it should reflect the setting in the General System Prefs, now.
defaults read com.apple.loginwindow
Look for the line with TALLogoutSavesState. It should be 0, now.
The checkbox in the shutdown dialog will remain checked, but you won't need to change it. It should ignore that since the main preference is set to not save state.
> The checkbox in the shutdown dialog will remain checked, but
> you won't need to change it. It should ignore that since the main
> preference is set to not save state.
I tried the suggested termial statements and they were accetpted but they did not work. After delegting the .plist and adding the new statement, I did a Restart and OS X came up with all the stuff opened just where I left it.
I still do not know how to setup 10.7 for a Clean start without having to manually unCheck the box in hte Restart and Shut Down boxes. Maybe the default setting should be to have the box unchecked?
Again, putting the Clean start option in the Restart and Shut Down boxes is a design mistake. It should have beern a user selection under System Prefernces/General
Until it is addessed by Apple we have to manually uncheck the box for each Shut Down or Restart
By using a simple AppleScript application, you can achieve this in a consistent way.
I've compiled an application that after clicking its icon, it will shut down your Mac with "save state" disabled. You can use this app on a daily basis instead of turning the Mac off in the traditional way.
A good idea could be putting it on your Dock so you always have it handy.
You can download the app from here
Thanks for the nice CleanShutDown applicaiton. It will be used until Apple gets around to fixing hte glitch in the user interface in OS X 10.7.
Hopefully, they will ditch the check box in the Restart and Shut Down boxes and add a normal Macintosh option in the System Preferenxces/General panel
Your app is now on the dock!