macOS – How to Disable Resume for All Apps

macos

I would like to disable resume for all applications by default (including newly install applications).

I know the following command will disable resume for a specific application (Safari in this case)
defaults write com.apple.Safari NSQuitAlwaysKeepsWindows -bool false but I was wondering if there's a way to disable it permanently.

Best Answer

To disable resume for all applications permanently, in the Finder, press Shift-Command-G to "Go to the folder" ~/Library/Saved Application State/, then press Command-I to Get file info, and check the "locked" box to lock the folder. This will keep any newly installed applications from resuming.