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.

Keep the documents true to the update fixes

Țugui Dragoș7d061cd7ac92
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index 6439a8ae..5029264b 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -257,8 +257,10 @@ macOS asks the user to approve it once. It talks to the app over XPC.
program or property list to register it again, or it may not launch. launchd starts `Contents/MacOS/PeelHelper`
from the app as it is at that moment, under a spawn constraint that names only the team and the helper's
identifier, so the next request runs the new helper, and a helper still running when an update replaced its
- program quits as soon as it is idle (`HelperLifetime`). That holds only while the helper's identifier and its
- launchd property list stay the same: a version that changes either has to register the helper again.
+ program quits as soon as it is idle (`HelperLifetime`). Until then it answers with its own version, so a helper
+ of another version is waited for until its process ends, and asked once more (`PrivilegedHelper.isResponding`).
+ That holds only while the helper's identifier and its launchd property list stay the same: a version that
+ changes either has to register the helper again.
- Any change to the helper means bumping `HelperIdentity.protocolVersion`, so Peel never works with a helper of
another version.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0d3957d0..715b541b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -107,6 +107,12 @@ its changes the way [Keep a Changelog](https://keepachangelog.com/) suggests.
### Fixed
+#### Home
+
+- Right after Peel updates itself, its helper no longer shows as not answering, and what only the helper can move
+ is no longer locked, while the helper of the version before is still leaving: Peel waits for it to go, then asks
+ again.
+
#### Tweaks
- A number written as text, as `defaults write` stores it with no type flag, reads as the number it spells, so a wait