Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Say in ARCHITECTURE how Intel Software judges code, and keep two comments to what the code does
Țugui Dragoș471e4a20eaa0
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.mdindex 75878a4d..97ad7534 100644--- a/ARCHITECTURE.md+++ b/ARCHITECTURE.md@@ -369,6 +369,14 @@ macOS asks the user to approve it once. It talks to the app over XPC.name it (`AppMemory`), and selects nothing for the person. An app macOS knows on another disk that claims somethingis remembered too (`OrphanScan.appsOnOtherDisks`, `Disks`), so its files stay its own while that disk isn'tconnected, and a link into an app on such a disk is not one into an app that is gone.+- **Intel Software.** `IntelInspector` judges by the code itself: what a bundle runs, or a file, is Intel only when+ its Mach-O slices are x86_64 alone (`MachOHeader`), and a file found inside an app or beside a printer driver counts+ only when it is a program (`MH_EXECUTE`), since a library runs in whatever loads it. It looks at the installed apps+ and, inside each, at the folders that hold code of its own (`embeddedDirectories`, and in `Contents/Frameworks` only+ the apps and services kept there), at the plug-ins the Plug-ins page lists, at the drivers in `Image Capture` and+ `Printers` and what else sits in `Audio/Plug-Ins` and `ColorPickers`, at the programs launchd jobs run, and at the+ tools in `/usr/local`. It only reports: an app goes from Applications, a plug-in the Plug-ins page lists from+ there, and the rest with the software that installed it.- **Resetting an app.** `AppReset` selects an app's settings, caches, and window state, which the app makes againwhen it next opens, and offers its website data and the data it keeps for the person without selecting them. Itnever offers the app itself, only files certainly the app's that nothing else claims, and it saves each preferencediff --git a/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift b/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swiftindex 47c49f00..f4f083e5 100644--- a/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift+++ b/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift@@ -2,7 +2,8 @@ import Darwinpublic import Foundationinternal import PeelPrivileged-/// Intel-only software, which needs Rosetta on Apple silicon. macOS 27 is the last release to offer Rosetta.+/// Intel-only software, which needs Rosetta on Apple silicon. macOS 27 is the last release to offer Rosetta for most+/// Intel software.public struct IntelFinding: Sendable, Hashable, Identifiable {public enum Kind: String, Sendable, Hashable, CaseIterable {case app@@ -71,8 +72,8 @@ public enum IntelInspector {}}- /// Folders inside an app whose contents run as processes of their own, so an Intel-only one really does- /// need Rosetta.+ /// Folders inside an app that hold code of its own, as processes or as plug-ins the app loads, so an Intel-only one+ /// there needs Rosetta even when the app doesn't.////// `Contents/Frameworks` is not one of them: a library there is loaded into the app's own process, so an/// Intel-only one matters only when the app itself runs as Intel code. The bundles beside the libraries are