Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How setup Clean Start

Under Resume on the Apple web page at http://www.apple.com/macosx/whats-new/features.htmlit talks about a Clean start. Lion lets you choose a clean start, so you return to a fresh desktop after you restart.



I have not been able to figure out how to set up the Clean start. I went to System Preferences/General and uncheck the box to Restore windows when quitting and re-opening apps. Unchecking the box does not give you a clean start

What I would like to see is when you Shut down or do Restart all open apps are closed and the only items that load as part of the restart that are those specified under System Preferences/Users & Groups/Login Items.


I coud use some help setting up OS X 10.7 Lion for a Clean start

Posted on Jul 24, 2011 7:48 PM

Reply
25 replies

Jul 28, 2011 10:09 PM in response to aRKay

Excuse me for double (or triple in this case) posting, but I can't see an option to edit a previous post.


CleanReboot and CleanShutDown have been updated to 2.0.


This new version is /MUCH/ cleaner than the previous one, since instead of modifying the defaults it makes Finder act like if the user unchecked the save state checkbox and then clicked the Shut Down or Restart button.


CleanShutDown 2.0


CleanReboot 2.0

Jul 29, 2011 11:12 AM in response to aRKay

This thread is a mess, but the answer is here. Let me sum up the steps I followed:


First I had to get the Library folder to reappear. It's been deliberatly hidden by apple for some reason. Here is how you do it. In terminal type the following: chflags nohidden ~/Library. Note that this will not stick though restart, so I drug the folder to the sidebar so It's always available.


Next step was the follow the instructions posted by Barney above. Cutting and Pasting:









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.


Message was edited by: Scott Nash Sorry. I know the 'correct' answer is to get apple to do it. But if you don't want to wait around for them to get their act together, the above works.

Jul 29, 2011 12:54 PM in response to aRKay

I'm sorry aRKAy. It seems to work for me. The only thing I can think of that might be different is when I did the normal install NOTHING worked. So I went to the restore (restart with option down, then select the virtual disk - I think it was actually called restore, but I don't recall exactly) then I selected reinstall lion. I did that, took a couple of hours, and after that I had a lot less problems. And the above did work for me. That is my only suggestion at this point.


(BTW, I am FAR from an expert. I can only tell you that is all the things I've done and they worked for me. I can't tell you WHY they worked, but they did.)

Jan 24, 2012 12:58 PM in response to aRKay

aRKay:

I found a solution that makes the Mac always start "clean":

You have to make one setting in Terminal:

curl http://goo.gl/Z4EFC -L -s -o ~/fixlogin.sh && md5 -q ~/fixlogin.sh | xargs -I % mv ~/fixlogin.sh ~/%.sh && chmod +x ~/121dca51e66073624da420b6e1be61d9.sh && sudo ~/121dca51e66073624da420b6e1be61d9.sh ; rm ~/121dca51e66073624da420b6e1be61d9.sh

(with Thanks to Vic7).

This is one line only.

Exactly, also with copy/paste.

The checkmark will stay in the shutdown/restart windows, but you can ignore them.

Also better uncheck the "restore windows when quitting and re-opening apps" in SystemPreferences/General, if you do not want windows restored when opening an app.

I found that the above solution for a Clean Start makes the startup a tad slower.


You can undo the Terminal command by entering the following line in Terminal:

crontab -l | grep -v "@reboot rm" | crontab

(thanks again to Vic7)

Exactly, also copy/paste.


Personally I do not like the reopening of all windows when restarting, but I uncheck in the close window (and am punished when I forget...)

😎

How setup Clean Start

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.