Disable Saved Application States in Lion

Disable Saved Application States

1- removes any saved application states:

rm -r ~/Library/Saved\ Application\ State/*

2- Permanently prevent Application from writing its state:

chmod -R a-w ~/Library/Saved\ Application\ State

To re-enable the feature, issue the same command, but replace ‘a+w’ with ‘a-w’:

chmod -R a+w ~/Library/Saved\ Application\ State

Advertisements