mirror of
https://github.com/PurpleComputing/helpful-scripts.git
synced 2026-02-03 13:53:24 +00:00
Create stop-autoopen.sh
This commit is contained in:
5
stop-autoopen.sh
Normal file
5
stop-autoopen.sh
Normal 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
|
||||
Reference in New Issue
Block a user