Skip to content

Instantly share code, notes, and snippets.

@rwky
Created October 6, 2011 01:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwky/1266261 to your computer and use it in GitHub Desktop.
Save rwky/1266261 to your computer and use it in GitHub Desktop.
Don't reopen windows at login plist file
<?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