aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2012-03-15 09:17:40 +0100
committerMathias Bynens <mathias@qiwi.be>2012-03-15 09:17:40 +0100
commit1de8cb8476bbf2cd71fa1e83126b057e38850705 (patch)
tree5a29318def206e51db7fe56aedc72011261a57cd
parent4f4c3421d0e948b5114f5e9f859b2bd6ada60adc (diff)
downloaddotfiles-1de8cb8476bbf2cd71fa1e83126b057e38850705.tar.gz
dotfiles-1de8cb8476bbf2cd71fa1e83126b057e38850705.tar.bz2
dotfiles-1de8cb8476bbf2cd71fa1e83126b057e38850705.zip
.osx: Disable the “reopen windows when logging back in” option
-rwxr-xr-x.osx5
1 files changed, 5 insertions, 0 deletions
diff --git a/.osx b/.osx
index 962d1fc..7ef7f6f 100755
--- a/.osx
+++ b/.osx
@@ -157,6 +157,11 @@ defaults write com.apple.Mail DisableSendAnimations -bool true
# Disable Resume system-wide
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
+# Disable the “reopen windows when logging back in” option
+# This works, although the checkbox will still appear to be checked.
+defaults write com.apple.loginwindow TALLogoutSavesState -bool false
+defaults write com.apple.loginwindow LoginwindowLaunchesRelaunchApps -bool false
+
# Enable Dashboard dev mode (allows keeping widgets on the desktop)
defaults write com.apple.dashboard devmode -bool true