-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ add guide for
NSQuitAlwaysKeepsWindow
setting (#399)
Co-authored-by: Yann Bertrand <5855339+yannbertrand@users.noreply.github.com>
- Loading branch information
1 parent
b4cc05a
commit 76d3942
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
title: Keep windows when quitting an application | Miscellaneous | ||
description: When enabled, open documents and windows will be restored when you re-open an application. | ||
head: | ||
- - meta | ||
- property: 'og:title' | ||
content: macOS defaults > Miscellaneous > Keep windows when quitting an application | ||
- - meta | ||
- property: 'og:description' | ||
content: When enabled, open documents and windows will be restored when you re-open an application. | ||
--- | ||
|
||
# Keep windows when quitting an application | ||
|
||
When enabled, open documents and windows will be restored when you re-open an application. | ||
|
||
⚠️ Restarting the Mac or closing the session is necessary to take the changes into effect. | ||
|
||
- **Tested on macOS**: | ||
- Sequoia | ||
- **Parameter type**: bool | ||
|
||
## Set to `true` (default value) | ||
|
||
Keep windows when quitting an application. | ||
Open documents and windows will be restored when you re-open an application. | ||
|
||
```bash | ||
defaults write NSGlobalDomain "NSQuitAlwaysKeepsWindow" -bool "true" | ||
``` | ||
|
||
## Set to `false` | ||
|
||
Close windows when quitting an application. | ||
Open documents and windows will not be restored when you re-open an application. | ||
|
||
```bash | ||
defaults write NSGlobalDomain "NSQuitAlwaysKeepsWindow" -bool "false" | ||
``` | ||
|
||
## Read current value | ||
|
||
```bash | ||
defaults read NSGlobalDomain "NSQuitAlwaysKeepsWindow" | ||
``` | ||
|
||
## Reset to default value | ||
|
||
```bash | ||
defaults delete NSGlobalDomain "NSQuitAlwaysKeepsWindow" | ||
``` | ||
|
||
## Set value from UI | ||
|
||
This setting is the inverse of the following option accessible through | ||
System Preferences. | ||
|
||
1. Open the <a href="x-apple.systempreferences:com.apple.preference.dock?Windows">Desktop & Dock preference pane in System Preferences</a>. | ||
2. Toggle "Close windows when quitting an application". |