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
An app inside another app stays with it
Țugui Dragoș95c3a04146e3
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex 84e0bf7d..5f432e67 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -82772,6 +82772,112 @@}}},+ "Part of %@, so it stays where it is." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Je součástí aplikace %@, proto zůstane, kde je."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Gehört zu „%@“, daher bleibt sie, wo sie ist."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Forma parte de %@, así que se queda donde está."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Fait partie de %@ : elle reste donc en place."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Fa parte di %@, quindi resta dov’è."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%@の一部のため、そのまま残ります。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%@의 일부이므로 그대로 남습니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Maakt deel uit van %@, dus die blijft waar die is."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Jest częścią aplikacji %@, więc zostaje na miejscu."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Faz parte de %@, então ele fica onde está."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Face parte din %@, așa că rămâne unde se află."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Входит в состав приложения «%@», поэтому остается на месте."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Ingår i %@, så den stannar där den är."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%@ uygulamasının bir parçası, bu yüzden olduğu yerde kalır."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Входить до складу програми «%@», тож лишається на місці."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "此App是%@的一部分,因此它会留在原处。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "此App是%@的一部分,因此它會留在原處。"+ }+ }+ }+ },"Part of an app" : {"localizations" : {"cs" : {diff --git a/Packages/PeelCore/Sources/PeelCommandLine/Commands/AppCommands.swift b/Packages/PeelCore/Sources/PeelCommandLine/Commands/AppCommands.swiftindex 0e5bfa74..858a39bf 100644--- a/Packages/PeelCore/Sources/PeelCommandLine/Commands/AppCommands.swift+++ b/Packages/PeelCore/Sources/PeelCommandLine/Commands/AppCommands.swift@@ -376,6 +376,14 @@ struct UninstallCommand: AsyncParsableCommand {throw CommandFailure("Peel removes itself from its own settings, which unregisters the helper first. Open Peel and click Remove Peel in Settings.")}+ /// Throws for an app inside another package, such as a helper app inside the app it serves: moved alone, it+ /// would be cut out of that package.+ static func refuseIfPartOfAnotherPackage(_ target: InstalledApp) throws {+ guard let package = target.enclosingPackage else { return }+ let name = Output.plain(AppInspector.displayName(of: package))+ throw CommandFailure("\(Output.plain(target.name)) is part of \(name), so it can't be removed on its own.")+ }+/// Throws when Peel never resets the privacy permissions of `target`. Called for `--reset-privacy` before/// anything is listed: skipping the reset quietly would remove the app and leave its permissions on record.static func refuseIfPrivacyCannotBeReset(_ target: InstalledApp) throws {@@ -404,6 +412,7 @@ struct UninstallCommand: AsyncParsableCommand {guard !target.isSystemProtected else {throw CommandFailure("macOS protects \(Output.plain(target.name)), so it can't be removed.")}+ try Self.refuseIfPartOfAnotherPackage(target)if resetPrivacy {try Self.refuseIfPrivacyCannotBeReset(target)}diff --git a/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swift b/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swiftindex 2f247936..08c95524 100644--- a/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swift+++ b/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swift@@ -87,6 +87,7 @@ public enum AppInspector {architectures: executable.map(MachOHeader.architectures(ofExecutableAt:)) ?? [],isFromAppStore: isFromAppStore,isSystemProtected: isSystemProtected,+ enclosingPackage: url.enclosingPackage,lastUsedDate: use.lastUsedDate,isUseRecorded: use.isRecorded,dateAdded: dateAdded(of: url),diff --git a/Packages/PeelCore/Sources/PeelCore/Apps/InstalledApp.swift b/Packages/PeelCore/Sources/PeelCore/Apps/InstalledApp.swiftindex 3f601521..2818c2ae 100644--- a/Packages/PeelCore/Sources/PeelCore/Apps/InstalledApp.swift+++ b/Packages/PeelCore/Sources/PeelCore/Apps/InstalledApp.swift@@ -17,6 +17,9 @@ public struct InstalledApp: Sendable, Hashable, Identifiable {public let architectures: Set<Architecture>public let isFromAppStore: Boolpublic let isSystemProtected: Bool+ /// The package the app sits inside, such as the app it is a helper of. Moved alone, the app would be cut out+ /// of that package, so it stays with it.+ public let enclosingPackage: URL?/// When the app was last opened, as Spotlight records it. Nil when it never was, or when nothing records it.public let lastUsedDate: Date?/// Whether Spotlight records when the app is opened, so that no `lastUsedDate` means it never was. Spotlight@@ -39,6 +42,7 @@ public struct InstalledApp: Sendable, Hashable, Identifiable {architectures: Set<Architecture> = [.arm64],isFromAppStore: Bool = false,isSystemProtected: Bool = false,+ enclosingPackage: URL? = nil,lastUsedDate: Date? = nil,isUseRecorded: Bool = true,dateAdded: Date? = nil,@@ -57,6 +61,7 @@ public struct InstalledApp: Sendable, Hashable, Identifiable {self.architectures = architecturesself.isFromAppStore = isFromAppStoreself.isSystemProtected = isSystemProtected+ self.enclosingPackage = enclosingPackageself.lastUsedDate = lastUsedDateself.isUseRecorded = isUseRecordedself.dateAdded = dateAdded@@ -92,6 +97,7 @@ public struct InstalledApp: Sendable, Hashable, Identifiable {architectures: architectures,isFromAppStore: isFromAppStore,isSystemProtected: isSystemProtected,+ enclosingPackage: enclosingPackage,lastUsedDate: date,isUseRecorded: isRecorded,dateAdded: dateAdded,diff --git a/Packages/PeelCore/Sources/PeelCore/Removal/BulkUninstallation.swift b/Packages/PeelCore/Sources/PeelCore/Removal/BulkUninstallation.swiftindex 3cd5d887..2c244afa 100644--- a/Packages/PeelCore/Sources/PeelCore/Removal/BulkUninstallation.swift+++ b/Packages/PeelCore/Sources/PeelCore/Removal/BulkUninstallation.swift@@ -27,13 +27,18 @@ public struct BulkUninstallation: Sendable {public var isPeels = false/// An app's bundle already in the Trash. Shown, never selected, never counted.public var isInTheTrash = false+ /// The package an app's bundle sits inside (`InstalledApp.enclosingPackage`). Shown, never selected, never+ /// moved.+ public var enclosingPackage: URL?/// True for a preference file that is no property list (`PreferenceFile.isDamaged`).public var holdsDamagedSettings = falsepublic var id: URL { url }public var isApplication: Bool { match == nil }public var isRecommended: Bool {- guard !isExcluded, !isPeels, !isKeptByMacOS, !isBeyondTheHelper, !isInTheTrash else { return false }+ guard !isExcluded, !isPeels, !isKeptByMacOS, !isBeyondTheHelper, !isInTheTrash, enclosingPackage == nil else {+ return false+ }guard let match else { return true }return sharedWithOthers.isEmpty && otherCopies.isEmpty && match.confidence >= .likely && match.heldBack == nil}@@ -60,9 +65,9 @@ public struct BulkUninstallation: Sendable {self.uninstallations = uninstallationsself.items = itemstotal = SizeTotal(items- .filter { !$0.isExcluded && !$0.isPeels && !($0.isApplication && $0.isKeptByMacOS) && !$0.isBeyondTheHelper && !$0.isInTheTrash && $0.match?.heldBack?.cannotBeMoved != true }+ .filter { !$0.isExcluded && !$0.isPeels && !($0.isApplication && $0.isKeptByMacOS) && !$0.isBeyondTheHelper && !$0.isInTheTrash && $0.enclosingPackage == nil && $0.match?.heldBack?.cannotBeMoved != true }.map { $0.isMeasured ? $0.size : nil })- privilegedURLs = Set(items.filter { $0.requiresPrivileges && !$0.isExcluded && !$0.isPeels && !$0.isBeyondTheHelper && !$0.isInTheTrash && !($0.isApplication && $0.isKeptByMacOS) }.map(\.url))+ privilegedURLs = Set(items.filter { $0.requiresPrivileges && !$0.isExcluded && !$0.isPeels && !$0.isBeyondTheHelper && !$0.isInTheTrash && $0.enclosingPackage == nil && !($0.isApplication && $0.isKeptByMacOS) }.map(\.url))}@concurrent@@ -91,12 +96,13 @@ public struct BulkUninstallation: Sendable {}/// What a checkbox can select, by the rule of an app's own page: nothing Peel leaves alone or with something- /// excluded inside, nothing that needs the helper while it cannot act, no app macOS keeps or the helper may not- /// move, and nothing of Peel.+ /// excluded inside, nothing that needs the helper while it cannot act, no app macOS keeps, that sits inside+ /// another package, or that the helper may not move, and nothing of Peel.public func selectable(canUseHelper: Bool) -> Set<URL> {Set(items.filter { item in- !item.isExcluded && !item.isPeels && !item.isBeyondTheHelper && !item.isInTheTrash && !(item.isApplication && item.isKeptByMacOS)- && item.match?.heldBack?.cannotBeMoved != true && (canUseHelper || !item.requiresPrivileges)+ !item.isExcluded && !item.isPeels && !item.isBeyondTheHelper && !item.isInTheTrash && item.enclosingPackage == nil+ && !(item.isApplication && item.isKeptByMacOS) && item.match?.heldBack?.cannotBeMoved != true+ && (canUseHelper || !item.requiresPrivileges)}.map(\.url))}@@ -143,6 +149,7 @@ public struct BulkUninstallation: Sendable {isBeyondTheHelper: existing.isBeyondTheHelper || item.isBeyondTheHelper,isPeels: existing.isPeels || item.isPeels,isInTheTrash: existing.isInTheTrash || item.isInTheTrash,+ enclosingPackage: existing.enclosingPackage ?? item.enclosingPackage,holdsDamagedSettings: existing.holdsDamagedSettings || item.holdsDamagedSettings)} else {@@ -184,7 +191,8 @@ public struct BulkUninstallation: Sendable {isMeasured: uninstallation.isAppMeasured,isBeyondTheHelper: uninstallation.isAppBeyondTheHelper,isPeels: uninstallation.isPeel,- isInTheTrash: uninstallation.isAppInTheTrash+ isInTheTrash: uninstallation.isAppInTheTrash,+ enclosingPackage: uninstallation.app.enclosingPackage))}diff --git a/Packages/PeelCore/Sources/PeelCore/Removal/Uninstallation.swift b/Packages/PeelCore/Sources/PeelCore/Removal/Uninstallation.swiftindex 57c77b67..11081cbe 100644--- a/Packages/PeelCore/Sources/PeelCore/Removal/Uninstallation.swift+++ b/Packages/PeelCore/Sources/PeelCore/Removal/Uninstallation.swift@@ -156,11 +156,13 @@ public struct Uninstallation: Sendable {return (inside.kind, components)}- /// True when the app itself would stay: excluded, Peel, kept by macOS, beyond the helper, or needing the- /// helper while it is not there. Nothing of it is then selected for the user: what it left behind would go- /// first, and it would stay without its settings. For an app macOS keeps, what it holds is data in use.+ /// True when the app itself would stay: excluded, Peel, kept by macOS, part of another package, beyond the+ /// helper, or needing the helper while it is not there. Nothing of it is then selected for the user: what it+ /// left behind would go first, and it would stay without its settings. For an app macOS keeps, what it holds is+ /// data in use.public func appStays(canUseHelper: Bool) -> Bool {- isExcluded || isPeel || app.isSystemProtected || isAppBeyondTheHelper || (appRequiresPrivileges && !canUseHelper)+ isExcluded || isPeel || app.isSystemProtected || app.enclosingPackage != nil || isAppBeyondTheHelper+ || (appRequiresPrivileges && !canUseHelper)}/// What is selected for the user at first: the app and the recommended leftovers that can move. Empty for@@ -181,7 +183,8 @@ public struct Uninstallation: Sendable {var urls = Set(scan.leftovers.filter { leftover inleftover.match.heldBack?.cannotBeMoved != true && (canUseHelper || !leftover.requiresPrivileges)}.map(\.url))- if !app.isSystemProtected, !isAppBeyondTheHelper, !isAppInTheTrash, canUseHelper || !appRequiresPrivileges {+ if !app.isSystemProtected, app.enclosingPackage == nil, !isAppBeyondTheHelper, !isAppInTheTrash,+ canUseHelper || !appRequiresPrivileges {urls.insert(app.url)}return urls@@ -189,10 +192,12 @@ public struct Uninstallation: Sendable {/// What moves when nobody reviews the list, as when Peel removes itself: the app, plus the recommended/// leftovers that need no helper and are certainly its own or named inside its bundle identifier (a- /// namespace only its maker uses). Empty when the app is excluded, kept by macOS, or needs the helper: then- /// nothing should start.+ /// namespace only its maker uses). Empty when the app is excluded, kept by macOS, part of another package, or+ /// needs the helper: then nothing should start.public var unreviewedSelection: [URL] {- guard !isExcluded, !app.isSystemProtected, !appRequiresPrivileges else { return [] }+ guard !isExcluded, !app.isSystemProtected, app.enclosingPackage == nil, !appRequiresPrivileges else {+ return []+ }let namespace = app.bundleIdentifier.lowercased() + "."let own = scan.leftovers.filter { leftover inleftover.match.isRecommended && !leftover.requiresPrivileges@@ -208,7 +213,8 @@ public struct Uninstallation: Sendable {var sizes: [Int64?] = leftovers.filter { $0.match.heldBack?.cannotBeMoved != true }.map { $0.isMeasured ? $0.size : nil }- if withApp, !app.isSystemProtected, !isExcluded, !isAppBeyondTheHelper, !isAppInTheTrash {+ if withApp, !app.isSystemProtected, app.enclosingPackage == nil, !isExcluded, !isAppBeyondTheHelper,+ !isAppInTheTrash {sizes.append(isAppMeasured ? appSize : nil)}return (sizes.count, SizeTotal(sizes))@@ -217,7 +223,8 @@ public struct Uninstallation: Sendable {public var privilegedURLs: Set<URL> {guard !isExcluded, !isPeel else { return [] }var urls = Set(scan.leftovers.filter { $0.requiresPrivileges && $0.match.heldBack != .beyondTheHelper }.map(\.url))- if appRequiresPrivileges, !app.isSystemProtected, !isAppBeyondTheHelper, !isAppInTheTrash {+ if appRequiresPrivileges, !app.isSystemProtected, app.enclosingPackage == nil, !isAppBeyondTheHelper,+ !isAppInTheTrash {urls.insert(app.url)}return urlsdiff --git a/Packages/PeelCore/Sources/PeelCore/Support/RealFolder.swift b/Packages/PeelCore/Sources/PeelCore/Support/RealFolder.swiftindex 51dad0d6..2fa5f23b 100644--- a/Packages/PeelCore/Sources/PeelCore/Support/RealFolder.swift+++ b/Packages/PeelCore/Sources/PeelCore/Support/RealFolder.swift@@ -33,6 +33,17 @@ extension URL {(try? resourceValues(forKeys: [.isPackageKey]).isPackage) == true}+ /// The outermost package this sits inside, such as the app around a helper app, or nil when none encloses it.+ var enclosingPackage: URL? {+ var found: URL?+ var folder = standardizedFileURL.deletingLastPathComponent()+ while folder.pathComponents.count > 1 {+ if folder.isAPackage { found = folder }+ folder = folder.deletingLastPathComponent()+ }+ return found+ }+/// Whether this is a package or sits inside one. What is inside a package belongs to it.var isOrIsInsideAPackage: Bool {var folder = standardizedFileURLdiff --git a/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swiftindex 5a1aa942..71148cfb 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift@@ -615,6 +615,18 @@ struct CommandLineTests {try UninstallCommand.refuseIfItIsPeel(other)}+ @Test func refusesToUninstallAnAppInsideAnotherApp() throws {+ let outer = URL(filePath: "/Applications/Outer.app", directoryHint: .isDirectory)+ let inner = InstalledApp(+ url: outer.appending(path: "Contents/Applications/Inner.app", directoryHint: .isDirectory),+ bundleIdentifier: "org.example.outer.inner", name: "Inner", enclosingPackage: outer+ )+ let alone = InstalledApp(url: outer, bundleIdentifier: "org.example.outer", name: "Outer")++ #expect(throws: CommandFailure.self) { try UninstallCommand.refuseIfPartOfAnotherPackage(inner) }+ try UninstallCommand.refuseIfPartOfAnotherPackage(alone)+ }+/// A privacy reset that was asked for but can never happen is refused before anything is listed. If it were/// skipped quietly, the app would go while its privacy permissions stayed on record.@Test func refusesAPrivacyResetItCannotDoBeforeAnythingMoves() throws {diff --git a/Packages/PeelCore/Tests/PeelCoreTests/UninstallationTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/UninstallationTests.swiftindex 48a14e0e..72cc9a06 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/UninstallationTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/UninstallationTests.swift@@ -260,6 +260,33 @@ struct UninstallationTests {#expect(several.total == SizeTotal(plan.scan.leftovers.map { $0.isMeasured ? $0.size : nil }))}+ /// Moved alone, an app inside another app's bundle would be cut out of it. It stays, on its own page and among+ /// several apps alike.+ @Test func anAppInsideAnotherAppStaysWithIt() async throws {+ let directory = try TemporaryDirectory()+ let home = try directory.directory("home")+ let info = try PropertyListSerialization.data(+ fromPropertyList: ["CFBundleIdentifier": "org.example.outer.inner"], format: .xml, options: 0+ )+ let bundle = try directory.directory("home/Applications/Outer.app/Contents/Applications/Inner.app")+ try directory.file("home/Applications/Outer.app/Contents/Applications/Inner.app/Contents/Info.plist", contents: info)+ try directory.file("home/Library/Preferences/org.example.outer.inner.plist")+ let installed = try #require(AppInspector.inspect(bundle))+ let environment = SearchEnvironment(homeDirectory: home, rootDirectory: directory.url.appending(path: "root"))++ let plan = await Uninstallation.prepare(installed, installedApps: [installed], environment: environment)+ #expect(installed.enclosingPackage?.lastPathComponent == "Outer.app")+ #expect(plan.appStays(canUseHelper: true))+ #expect(plan.suggestedSelection(canUseHelper: true).isEmpty)+ #expect(!plan.selectable(canUseHelper: true).contains(bundle))+ #expect(plan.movable(among: plan.scan.leftovers, withApp: true).count == plan.scan.leftovers.count)++ let several = await BulkUninstallation.prepare([installed], installedApps: [installed], environment: environment)+ #expect(several.suggestedSelection(canUseHelper: true).isEmpty)+ #expect(!several.selectable(canUseHelper: true).contains(bundle))+ #expect(several.total == SizeTotal(plan.scan.leftovers.map { $0.isMeasured ? $0.size : nil }))+ }+/// Excluded by identifier or by path, the app and everything the scan would find are left alone.@Test func leavesAnExcludedAppAndItsFilesAlone() async throws {let directory = try TemporaryDirectory()diff --git a/Peel/Views/AppDetailView.swift b/Peel/Views/AppDetailView.swiftindex 3c49bc14..08e96604 100644--- a/Peel/Views/AppDetailView.swift+++ b/Peel/Views/AppDetailView.swift@@ -252,7 +252,8 @@ struct AppDetailView: View {isMeasured: plan.isAppMeasured,isLocked: plan.appRequiresPrivileges && !helper.canAct,isExcluded: plan.isExcluded,- isLeftAlone: plan.app.isSystemProtected || plan.isAppBeyondTheHelper || plan.isAppInTheTrash || plan.isPeel,+ isLeftAlone: plan.app.isSystemProtected || plan.app.enclosingPackage != nil || plan.isAppBeyondTheHelper+ || plan.isAppInTheTrash || plan.isPeel,appIdentifier: plan.app.bundleIdentifier,selection: plan, isSelected: plan.isSelected(plan.app.url))@@ -312,6 +313,10 @@ struct AppDetailView: View {if plan.app.isSystemProtected {return String(localized: "macOS keeps this app, so it stays where it is.")}+ if let package = plan.app.enclosingPackage {+ let name = AppInspector.displayName(of: package)+ return String(localized: "Part of \(name), so it stays where it is.")+ }if plan.isAppInTheTrash {return String(localized: "Already in the Trash. What it left behind can still go.")}diff --git a/Peel/Views/MultipleAppsView.swift b/Peel/Views/MultipleAppsView.swiftindex 228250d6..d52f6107 100644--- a/Peel/Views/MultipleAppsView.swift+++ b/Peel/Views/MultipleAppsView.swift@@ -198,7 +198,7 @@ struct MultipleAppsView: View {isLocked: item.requiresPrivileges && !helper.canAct,isExcluded: item.isApplication && item.isExcluded,isLeftAlone: item.match?.heldBack?.cannotBeMoved == true || item.isBeyondTheHelper || (item.isApplication && item.isKeptByMacOS)- || item.isPeels || item.isInTheTrash,+ || item.isPeels || item.isInTheTrash || item.enclosingPackage != nil,appIdentifier: item.isApplication ? item.apps.first : nil,isFirst: isFirst,selection: plan, isSelected: plan.isSelected(item.url)@@ -237,6 +237,10 @@ struct MultipleAppsView: View {if item.isInTheTrash {lines.append(String(localized: "Already in the Trash. What it left behind can still go."))}+ if let package = item.enclosingPackage {+ let name = AppInspector.displayName(of: package)+ lines.append(String(localized: "Part of \(name), so it stays where it is."))+ }if item.isKeptByMacOS {// Two literals, so the string catalog finds both.lines.append(item.isApplicationdiff --git a/SAFETY.md b/SAFETY.mdindex 6bf0e826..99fbf3f9 100644--- a/SAFETY.md+++ b/SAFETY.md@@ -162,10 +162,11 @@ top of your home folder or of a Library, or in a maker's folder there, where a nextension the app installed is not listed at all: macOS uninstalls it itself when the app is deleted. A plug-in'sname says what it does rather than who made it, so a plug-in called like the app is selected only when theidentifier it declares is the app's or its maker's: another maker's plug-in with the app's name is never selected.-And nothing at all is selected for an app that would stay: one macOS keeps, one the helper may not move, or one that-needs the helper while it cannot act. When you remove several apps at once and deselect one of them, it stays too:-its files leave the selection, those it shares with the other apps included, and selecting it again brings them-back.+And nothing at all is selected for an app that would stay: one macOS keeps, one that is part of another app, one the+helper may not move, or one that needs the helper while it cannot act. An app that is part of another, such as a+helper app inside the app it serves, is never moved on its own, from the app or from `peel`: it would be cut out of+the app it belongs to. When you remove several apps at once and deselect one of them, it stays too: its files leave+the selection, those it shares with the other apps included, and selecting it again brings them back.Peel itself is listed on its own page with what it keeps, and nothing of it can be selected there or among otherapps. It is removed only by Remove Peel, in Settings, which takes its helper and login item away first.