6

I want to turn off the restoring of an application window (in my case, iTerm). How to turn it off, but just for this specific application ?

3

You could try modifying the permissions on the saved state folder so it cannot be written to.

Take Preview.app for example.

Open Terminal.app from the Utilities folder under Applications and enter:

sudo chmod 440 ~/Library/Saved Application State/com.apple.Preview.savedState/

So you will want to look in the your "~/Library/Saved Application State" folder for the path to the iTerm saved state and modify the command above accordingly.

8

There is a specific command to prevent any app from saving state, rather than just locking the state folder…

defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false

If you don't want a permanent switch, just to prevent it on one single occasion, then deleting/moving the Saved State folder in ~/Library/Saved Application State/ would be the simplest.

2

I use RestoreMeNot for this purpose. It adds a prefpane where you can toggle restoration on a per app basis.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .