How do I stop windows from restoring after a reboot?

Discussion in 'Mac OS X Lion (10.7)' started by itsjustmeee, Apr 25, 2012.

  1. itsjustmeee macrumors 6502a

    Joined:
    Dec 28, 2008
    #1
    I have occasional issues with my mac pro freezing and I have to do a full reboot. The windows from the previous session keep popping up even though I have the "Restore windows when quitting and re-opening apps" box unchecked in the General Settings. Is there any way to stop my mac from doing this?
     
  2. Mattie Num Nums macrumors 68030

    Mattie Num Nums

    Joined:
    Mar 5, 2009
    Location:
    USA
    #2
    From what I have seen this MCX replaces itself upon login so you will need a login hook to disable it.

    Code:
    defaults write com.apple.loginwindow TALLogoutSavesState -bool false 
    
    defaults write .GlobalPreferences NSQuitAlwaysKeepsWindows -bool false
     

Share This Page