Skip to content

Instantly share code, notes, and snippets.

@rtrouton
Created August 14, 2015 16:45
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rtrouton/2e3827ddc795152616a7 to your computer and use it in GitHub Desktop.
Save rtrouton/2e3827ddc795152616a7 to your computer and use it in GitHub Desktop.
Disable "Reopen windows..." on logout, restart or shutdown
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>TALLogoutSavesState</key>
<string>0</string>
</dict>
</plist>
@rtrouton
Copy link
Author

I created this file by running the following command in Terminal:

defaults write ~/Desktop/com.apple.loginwindow TALLogoutSavesState -bool false

That created a file named com.apple.loginwindow.plist on my desktop with just the requested setting inside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment