Created
October 6, 2011 01:36
-
-
Save rwky/1266261 to your computer and use it in GitHub Desktop.
Don't reopen windows at login plist file
This file contains hidden or 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
<?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"> | |
<!-- | |
Put this file as /Library/LaunchDaemons/com.rwky.dont_reopen_windows_at_login.plist | |
then run sudo chown root:wheel /Library/LaunchDaemons/com.rwky.dont_reopen_windows_at_login.plist | |
When you reboot, regardless of if the reopen windows at login is ticket they won't reopen | |
--> | |
<dict> | |
<key>Label</key> | |
<string>com.rwky.dont_reopen_windows_at_login</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/bin/bash</string> | |
<string>-c</string> | |
<string>/bin/rm -f /Users/*/Library/Preferences/ByHost/com.apple.loginwindow*</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment