Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Count Force Quit among what can't be undone, and say what Mullvad VPN deletes

Țugui Dragoș04fd58b13d58
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index 3db978cf..5fbb5de7 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -112,9 +112,10 @@ A handful of ideas carry most of the weight. Each is enforced in one place and t
- **The Trash, never deletion.** Nothing in Peel deletes anything of the user's; what it deletes outright is its own:
its list of refusals, when `peel history --refused --clear` is asked to forget it, and the empty placeholder
`TrashMover` makes to hold a name on a disk that cannot rename without replacing (exFAT), when the move it was made
- for fails. Three actions can't be undone by History, and each says so where it is confirmed: Homebrew's own uninstall
- and clean up, and resetting an app's privacy permissions. Forgetting a preference domain happens only once its file is
- in the Trash, so putting the file back undoes it. Every `brew` call runs without Homebrew's automatic cleanup
+ for fails. Four actions can't be undone by History, and each says so where it is confirmed: Homebrew's own uninstall
+ and clean up, resetting an app's privacy permissions, and Force Quit for an app that is still open 10 seconds after
+ Peel asked it to quit (`QuitBeforeRemoving`). Forgetting a preference domain happens only once its file is in the
+ Trash, so putting the file back undoes it. Every `brew` call runs without Homebrew's automatic cleanup
(`HOMEBREW_NO_INSTALL_CLEANUP`), so an upgrade never deletes on its own; when a `brew.env` file of the user's turns
that back on (`Homebrew.overrides()`, from `brew config`), the Homebrew page says so and leaves upgrades to Terminal.
- **One guard.** `RemovalGuard` decides, for the app and the `peel` tool alike, whether an item may move. Its
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 01517bc1..199e23ba 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -13,13 +13,13 @@ recorded, so History can put it back; in the app it runs inside `QuitGuard.share
has it, and so does a Put Back, so that quitting waits for them. No code path in Peel deletes anything of the user's,
and a change that adds one won't be accepted. What Peel deletes outright is its own: its list of refusals, when
`peel history --refused --clear` is asked to forget it, and the empty placeholder `TrashMover` makes to hold a name on a
-disk that cannot rename without replacing (exFAT), when the move it was made for fails. Three things Peel starts can't
-be undone by History, and each says so where the user confirms it: Homebrew's own uninstall and clean up, and resetting
-an app's privacy permissions. `defaults delete` for an app's preferences runs only once their file is in the Trash, and
-a reset exports the domain first, so putting the file back undoes it; putting saved settings back clears a domain only
-once it has been saved as a copy of its own, and asks first. Every `brew` call runs with `HOMEBREW_NO_INSTALL_CLEANUP`,
-so an upgrade never cleans up on its own, and when a `brew.env` file turns that back on (`Homebrew.overrides()`), Peel
-leaves upgrades to Terminal.
+disk that cannot rename without replacing (exFAT), when the move it was made for fails. Four things Peel starts can't be
+undone by History, and each says so where the user confirms it: Homebrew's own uninstall and clean up, resetting an
+app's privacy permissions, and Force Quit for an app that is still open 10 seconds after Peel asked it to quit.
+`defaults delete` for an app's preferences runs only once their file is in the Trash, and a reset exports the domain
+first, so putting the file back undoes it; putting saved settings back clears a domain only once it has been saved as a
+copy of its own, and asks first. Every `brew` call runs with `HOMEBREW_NO_INSTALL_CLEANUP`, so an upgrade never cleans
+up on its own, and when a `brew.env` file turns that back on (`Homebrew.overrides()`), Peel leaves upgrades to Terminal.
## What you need
diff --git a/README.md b/README.md
index 1f6e3b18..cea1b77d 100644
--- a/README.md
+++ b/README.md
@@ -89,8 +89,8 @@ does, what Peel asks for and why, and how to remove Peel.
A cleaner should never cost you something you wanted. Peel is built around that.
- **The Trash, never deletion.** Everything Peel removes goes to the Trash, and History puts it back where it was.
- Three things can't be undone that way, and Peel says so before you confirm them: Homebrew's own uninstall and
- cleanup, and resetting an app's privacy permissions.
+ Four things can't be undone that way, and Peel says so before you confirm them: Homebrew's own uninstall and clean
+ ups, resetting an app's privacy permissions, and Force Quit for an app that won't quit.
- **Protected places stay protected.** Peel refuses to move iCloud Drive, keychains, your SSH and signing keys, the
keys of crypto wallets, Mail, Messages, Safari, Contacts, Calendars, Notes, photo and music libraries, iPhone and
iPad backups, and the Desktop, Documents, and Downloads folders themselves. No selection can override it. A
diff --git a/SAFETY.md b/SAFETY.md
index 1ffc90e4..584ffe59 100644
--- a/SAFETY.md
+++ b/SAFETY.md
@@ -133,13 +133,16 @@ free name allows, and the move then replaces the placeholder.
What Peel deletes outright is only its own: its list of refusals, when `peel history --refused --clear` is asked to
forget it, and such a placeholder, when the move it was made for fails.
-Three things Peel starts can't be undone by History, and Peel says so before you confirm each of them: Homebrew's
-own uninstall and its clean ups (Clean Up, and clearing older or every download), which delete what they remove, and
-resetting an app's privacy permissions, which is off until you choose it. An upgrade from the Homebrew page never
-cleans up on its own, although Homebrew would by default. If one of Homebrew's own settings files (`brew.env`) turns
-that cleanup back on, the Homebrew page says so and Peel leaves upgrades to Terminal. Forgetting a preference domain
-(described above) is not one of the three: it is done only once the file is in the Trash, and putting the file back
-undoes it, until the app writes its settings again.
+Four things Peel starts can't be undone by History, and Peel says so before you confirm each of them: Homebrew's own
+uninstall and its clean ups (Clean Up, and clearing older or every download), which delete what they remove; resetting
+an app's privacy permissions, which is off until you choose it; and Force Quit, which Peel offers when an app it has to
+quit is still open after 10 seconds, and which loses what that app had not saved. An upgrade from the Homebrew page
+never cleans up on its own, although Homebrew would by default. If one of Homebrew's own settings files (`brew.env`)
+turns that cleanup back on, the Homebrew page says so and Peel leaves upgrades to Terminal. Forgetting a preference
+domain after a removal (described above) is not one of the four: it is done only once the file is in the Trash, and
+putting the file back undoes it, until the app writes its settings again. And one app deletes something of its own once
+it is moved: Mullvad VPN's service logs the Mac out of its account and deletes its settings when the app leaves the
+Applications folder, which Peel says before it moves it.
If the record itself is damaged, it is set aside under another name rather than overwritten, because it is
the only way back from a removal. If it can't be read at all, Peel moves nothing until it can, or until you