Last active
January 16, 2023 08:44
-
-
Save Khoulaiz/4aa4d87fe2347e13807cd31fe9b93273 to your computer and use it in GitHub Desktop.
Turn off annoying window reopening in macosx after reboot (persistent)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a clean reboot without the windows you don't want to have | |
# by rebooting your mac (uncheck the reopen windows checkbox in the reboot dialog | |
# take over this file | |
sudo chown root ~/Library/Preferences/ByHost/com.apple.loginwindow* | |
# and prevent further changes (checkbox in reboot dialog doesn't matter) | |
sudo chmod 000 ~/Library/Preferences/ByHost/com.apple.loginwindow* | |
# to undo it, simply delete the file. It will be recreated automatically |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment