Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

In Mac OS X Lion, when I do Apple > Shut Down, there is a checkbox that says "Reopen windows when logging back in".

Even though I constantly UNCHECK the box, it seems OS X doesn't care - and still opens some Finder windows and sometimes Chrome...

share|improve this question
2  
In System Preferences > Users & Groups > Login Items, is Chrome set to open at login? In Snow Leopard, I know Finder windows were restored at launch, but Chrome windows are a mystery. –  Nathan Aug 7 '11 at 15:03
    
You were right about Chrome, it was in the login items, I don't know how it got there... –  nute Aug 10 '11 at 7:16
    
I added that as an answer so you can mark your question as successfully answered. –  Nathan Aug 10 '11 at 14:12
    
Perhaps is our old friend GoogleSoftwareUpdate ? I bet Chromium does not do that .... :\ –  chiggsy Aug 12 '11 at 3:15
    
Unchecking "Reopen windows when logging back in" really just disables reopening applications. When applications are reopened either manually or as login items, their state is still restored. (Even if Resume was disabled in the General preferences and application state wouldn't normally be restored.) –  ؘؘؘ May 10 '12 at 18:25

4 Answers 4

up vote 1 down vote accepted

Be sure that Google Chrome isn't included in System Preferences > Users & Groups > Login Items.

Also, Finder windows restore by default regardless, as they did in Snow Leopard.

share|improve this answer

This bug has been fixed with the Lion update 10.7.4:

The OS X Lion v10.7.4 Update includes fixes that:

Resolve an issue in which the "Reopen windows when logging back in" setting is always enabled.

enter image description here

(click here for more information)

share|improve this answer

For the record, we’re talking about this:

Screenshot

The problem is that OS X doesn’t remember if you uncheck the checkbox on the last shutdown — it will always keep the checkbox checked by default on subsequent shutdowns.

I found two different solutions for this problem, that seem to do the trick, although they aren’t ideal.

Open Terminal.app and enter the following commands:

defaults write com.apple.loginwindow TALLogoutSavesState -bool false
defaults write com.apple.loginwindow LoginwindowLaunchesRelaunchApps -bool false

This effectively disables the “reopen windows when logging back in” option, although the checkbox will still appear to be checked. You can just ignore it.

I’m afraid there’s no better solution, at least not at the moment.


Update: OS X 10.7.4 fixed this — it now remembers your selection:

share|improve this answer
1  
It seems Mountain Lion fixed the issue –  nute Mar 22 '12 at 10:57
    
@nute So does Mountain Lion remember your selection, or does it respect and remember the TALLogoutSavesState setting? It’s a neat improvement either way! –  Mathias Bynens Mar 22 '12 at 11:01
2  
It remembers my checkbox selection. –  nute Mar 25 '12 at 11:13
    
@nute Awesome, thanks for the info! –  Mathias Bynens Mar 25 '12 at 17:07
    
This hack resulted in some graphical glitches on my MBP 8-2 every time I logged in! This other solution on the other hand was fine. –  gentmatt May 15 '12 at 11:00

Do you ever want applications to restore to their closed state, or just at startup? If you want something resembling pre-Lion behavior (i.e. not picking up where you left off), try this.

Back up your system before trying this, in case it messes anything up, but I'd recommend this procedure: In the Finder, press Command-shift-G for "Go to the folder:" then type "~/Library/Saved Application State/" (without the quotes). Delete all the folders in Saved Application State, then press Command-I to Get File Info. In the Get File Info window, check the "locked" box. This should keep applications from restoring their state.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.