Create stop-autoopen.sh

This commit is contained in:
Michael
2021-11-09 19:46:51 +00:00
committed by GitHub
parent 102642c145
commit 630029d955

5
stop-autoopen.sh Normal file
View File

@@ -0,0 +1,5 @@
# RUN SCRIPT ON LOGIN AND LOGOUT TO PREVENT 'Reopen windows when logging back in'.
# This effectively disables the “reopen windows when logging back in” option,
# although the checkbox will still appear to be checked. You can just ignore it.
defaults write com.apple.loginwindow TALLogoutSavesState -bool false
defaults write com.apple.loginwindow LoginwindowLaunchesRelaunchApps -bool false