How do I turn off Safari resume "feature"?

Unfortunately Safari is now in the habit of reloading the last page that was open when last quit. I DO NOT WANT THIS. When I quit Safari it's because I am finished with my browsing. Upon returning I ALWAYS want to start fresh at Google search. Is there now way do disable this?!


Plese let me illustrate the problem:


Browsing before Lion: Start Safari, do Google search or open bookmark, browse, quit.

Browsing after Lion: Start Safari, get some random page that was last open of which I have no further interest, close page, open new page, do Google search or open bookmark, browse, remember to close that page before I leave Safari so that it doesn't open again, quit. Rage.


This is seriously the last straw for Safari, I must now make Firefox my default browser even though I'd rather use Safari.

Posted on Jul 23, 2011 11:11 AM

Reply
11 replies

Jul 28, 2011 7:43 AM in response to Flickeringsight

Another way to do this, on a single instance basis, is to do the following:


When quitting Safari, click on Safari on the menu bar, when the scroll window opens press the options key and Quit changes to Quit and Discard Windows. While continuing to hold down the options key click on Quit and Discard Windows. When Safari opens the next time it will open to your designated home page.

Nov 14, 2011 7:16 AM in response to Flickeringsight

You can use a Terminal command to stop this on any specific App.


http://www.maclife.com/article/howtos/how_tame_six_os_x_lion’s_early_problems


The last tip in that article has it:


"By default, OS X Lion now attempts to get you back to work sooner by opening the files you were last viewing upon launch. While it’s a nice feature for many apps, there may be cases where you don’t want prying eyes to see what you were last viewing. The System Preferences > General tab has an option for getting rid of the feature entirely (simply uncheck “Restore windows when quitting and re-opening apps”), but there’s a better way to handle it on an app-by-app basis, courtesy of developer Wil Shipley.


First you’ll need to know exactly which app you want to kill this feature on -- we’ll use Preview as an example, since it may not be desirable to have it restore documents in most cases. Fire up Terminal again and use the following command without quotes: “defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -int 0”. For other applications, simply replace “Preview” with the name of the app -- when in doubt, visit your Preferences folder to confirm how the app name appears in the “com.apple.XXXX” file this is modifying."


---


To see the exact way an App name appears, make sure the Finder is selected so the Finder menu appears, then up left near the Apple logo on the desktop bar click Go To, then Go To Folder, and type in ~/Library. Then in the window that opens, click on Preferences. You'll see a list of files, don't click on any. Just scroll down to the com.apple.XXXX area to see how the app you want to change appears. In this case, Safari is what one would expect, Safari with a capitol S.


So the command to type or copy and paste into Terminal is:


defaults write com.apple.Safari NSQuitAlwaysKeepsWindows -int 0


Then hit enter.


Close and restart Safari, next time you restart the computer Safari (or whatever other App(s) you ran that on) should not resume automatically from the last saved state.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I turn off Safari resume "feature"?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.