Annoying message when opening windows from Python on OS X 10.8

The correct command to run is:

defaults write org.python.python ApplePersistenceIgnoreState NO

This message appears due to the “application resume” feature in newer versions of OS X. Clearly, this isn’t a useful feature for most Python programs (in my case, plotting data with matplotlib), so we can just turn it off with the above command.

For more information on what defaults write is actually doing, check out the man page.

Leave a Comment