Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AnTaR3s

macrumors 6502
Original poster
Jul 19, 2011
269
82
Vienna
Hey

I have recently noticed a new behaviour of Safari. Previously, when I quit the app (CMD+Q) also automatically all tabs were closed and upon reopening Safari, it showed me my starting page (empty). Now, when I quit Safari with CMD+Q and then reopen it, the app restores all previously opened tabs! That's really annoying! For instance, when I now quit Safari and reopen it, it will automatically go to the macrumors forums. How can I change this behaviour?

Also, I noticed that Safari has been much less reliable for the last couple of weeks, incorrectly displaying webpages and crashing from time to time. Thinking about switching to some other browser...

thanks!
 
Preferences > General > Safari opens with
I must be blind

safari.jpeg


where? If I set 'open with' to empty, also the previous tabs are restored...
 
I must be blind

I think sammich might be using an earlier version. In El Capitan, I think you should go to the System Preferences > General, and near the bottom check off the box for "Close windows when quitting an app". Of course, that will affect all apps other than Safari. It looks like option-command-Q will quit Safari and close all its windows, so I think that would be the most specific way to do what you want for Safari.
 
  • Like
Reactions: CoastalOR
In addition to Pearl Wisdom’s suggestions, you can:
  • Just close the window before you quit the app. This is how the restoration feature is supposed to work.
  • Reverse the mentioned shortcuts for Safari, so that command–Q will always close all windows when quitting. You can do that by adding new shortcuts in System Preferences → Keyboard → Shortcuts → App Shortcuts and then add two for ‘Quit and Close All Windows’ and ‘Quit Safari’.
  • Try this Terminal command (I cannot say whether this works in Safari, it does in Preview):
    Code:
    defaults write com.apple.Safari NSQuitAlwaysKeepsWindows -bool false
    This command will set a preference in Safari’s configuration file. You have to quit Safari once to apply this preference.
 
I think sammich might be using an earlier version

Au contraire, I'm on Sierra and both Safari and Safari Technical Preview have the option at the top.

I double checked with another user account to make sure it's not a hidden option (somehow) and it's also there.

Apologies for the confusion. I've always thought the option was there. Seems like KALLT's solution is your way forward.
 

Attachments

  • pung.png
    pung.png
    150.8 KB · Views: 177
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.