brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Close windows when quitting stops Mac apps from reopening old windows

macOS
~/tips/tip-macos-close-windows-when-quitting

Close windows when quitting an application: on

Start apps with a clean slate instead of every window from last time.

Quit Preview with six PDFs open and the next time you open it, all six are back. Some people love that. If you don’t, there’s one switch for it.

Open System Settings, click Desktop & Dock and scroll to the Windows section.

System Settings > Desktop & Dock > Windows
  Close windows when quitting an application: on

Apple’s description is short: app windows are closed when you quit an app, and they don’t reopen automatically the next time you open it. So Command-Q really means “I’m done”, and the next launch starts empty.

I like this for apps like Preview, TextEdit and Terminal, where yesterday’s windows are rarely what you need today. It also keeps an app from opening a huge file you looked at last week, which can make the launch slow.

An example of the difference: with the switch off, quit Terminal with three tabs and they come back at the next launch. With it on, you get one fresh window.

It’s one switch for every app, and some apps have their own setting that wins. Browsers, for example, have their own choice of what to open at startup. The same section has a neighbour worth reading too: “Ask to keep changes when closing documents”. By default unsaved changes are saved for you when you close a document; turn that on if you’d rather be asked.

Further reading: Change Desktop & Dock settings on Mac (Apple)

More macOS tips System Settings > Accessibility > Hover Text > When using the pointer A Smart Folder in Notes collects notes by tag, checklist or date Type # in a Mac note to tag it, then filter by tag in the sidebar tmutil isexcluded ~/Projects/app/node_modules Crop an image in Preview by dragging a frame and clicking Crop All macOS tips (99) All topics

Link