Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable "The last time you opened *, it unexpectedly quit while reopening windows" dialog in OSX 10.8

Tags:

macos

I managed to successfully silence the CrashReport dialog, but when my application crashes and I restart it, I get the annoying dialog as from Title. Is there a way to prevent it to appear, and just let the application run without interruption?

like image 442
Stefano Borini Avatar asked Nov 26 '13 20:11

Stefano Borini


People also ask

How do I stop Windows from reopening on startup Mac?

Use the setting in General preferences To prevent apps from remembering the windows they had open, choose Apple menu  > System Preferences, click General, then select ”Close windows when quitting an app.”

How do you fix an app that quits unexpectedly on a Mac?

Choose Apple menu > Force Quit, select the app in the dialog that appears, then click Force Quit. If the app quit, reopen it by clicking Reopen in the dialog that appears. Restart your Mac by choosing Apple menu > Restart. Make sure the app is compatible with your version of macOS.

How do I stop Safari from reopening Windows?

To do so, press and hold on the Tabs icon and select Close All Tabs option in the contextual menu. On the confirmation pop up, select Close All Tabs option to confirm and this will prevent Safari from opening your previous browsing session.

What is Reopen Windows when logging back in Mac?

There's an option to reopen Windows when logging back in, which is on by default. With this option turned on, if you shut down or restart, when you sign back into your account, any applications or windows that you had open when you shut down will open up again.


Video Answer


2 Answers

Try this to get rid of the reopening windows:

defaults write -app "Application Name" NSQuitAlwaysKeepsWindows -bool false

You may also disable it for every application by selecting this option in the preferences: "Close windows when quitting an application"

And for others reading this thread, to remove the CrashReport do this:

defaults write com.apple.CrashReporter DialogType none

Also note that in the source of this information they say:

For this to work one needs to check the box, open the program in question and immediately close it. On the next re-opening it will work without Resume.

You may also have to delete:

/Users/…/Library/Saved\ Application\ State/org.python.python.savedState/
like image 152
Daniel Avatar answered Oct 26 '22 03:10

Daniel


Voila! I've just solved this problem by deleting all Unity-related files inside ~Library/Caches folder on my Mac!

like image 23
Oktushka Avatar answered Oct 26 '22 04:10

Oktushka