SummitRoute / osxlockdown

[No longer maintained] Apple OS X tool to audit for, and remediate, security configuration settings.
MIT License
776 stars 51 forks source link

Disable Saved State #66

Open ghost opened 8 years ago

ghost commented 8 years ago

One of the new features in OS X Lion and OS X Mountain Lion is the “Resume” ability for all applications to save their last state, meaning when you relaunch the app or reboot your Mac, the application will “resume” and reopen again showing all of the windows and data that was last in use. This is a great feature for some apps and situations, but there are also times where you don’t want past app states to reappear.

Commands to disable:

defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false
chmod 400 ~/Library/Saved\ Application\ State/