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
Tell from peel what the app tells about an app that stays or a Caskroom record left
Țugui Dragoș6b72f4d35a1a
diff --git a/GUIDE.md b/GUIDE.mdindex aa43bc55..aa1ced84 100644--- a/GUIDE.md+++ b/GUIDE.md@@ -354,7 +354,8 @@ that opens it in Peel. It never adds them up into one figure and never selects aand `updates` take `--json`, which lists and never moves, so `--json` with `--remove` is refused rather than guessedat, and `uninstall --json` reports once the move is done: each item and why it stays, what moved, what failed andwhy, whether the privacy reset happened, the folders Peel couldn't read, and the lines of your shell files that- still name what moved. A size nobody knows is `null`, never zero, and what a scan couldn't read is said on+ still name what moved. `leftovers --json` says in `appStays` why the app itself would stay, when it would, since+ none of its files moves then. A size nobody knows is `null`, never zero, and what a scan couldn't read is said onstandard error too. The exit status says how it ended: 0 when it did what was asked, 1 when something failed orstayed where it was, 2 when you answered no, and 64 when the command is wrong or it would have to ask and can't.- **Completions and manual.** A Homebrew install sets up its completions for zsh, bash, and fish, and its manualdiff --git a/Packages/PeelCore/Sources/PeelCommandLine/Commands/AppCommands.swift b/Packages/PeelCore/Sources/PeelCommandLine/Commands/AppCommands.swiftindex 08e1b6b6..7f393981 100644--- a/Packages/PeelCore/Sources/PeelCommandLine/Commands/AppCommands.swift+++ b/Packages/PeelCore/Sources/PeelCommandLine/Commands/AppCommands.swift@@ -118,12 +118,19 @@ struct LeftoversCommand: AsyncParsableCommand {let appSize: Int64?let leftovers: [LeftoverRecord]let unreadableLocations: [String]-- init(app: InstalledApp, appSize: Int64?, leftovers: [Leftover], unreadableLocations: [SearchLocation]) {+ /// Why `peel uninstall` would leave the app itself where it is, or `null` when it would move it. While the app+ /// stays, none of its files moves.+ let appStays: String?++ init(+ app: InstalledApp, appSize: Int64?, leftovers: [Leftover], unreadableLocations: [SearchLocation],+ appStays: String?+ ) {self.app = AppRecord(app)self.appSize = appSizeself.leftovers = leftovers.map(LeftoverRecord.init)self.unreadableLocations = unreadableLocations.map { Output.path($0.url) }+ self.appStays = appStays}private enum CodingKeys: String, CodingKey {@@ -131,6 +138,7 @@ struct LeftoversCommand: AsyncParsableCommand {case appSizecase leftoverscase unreadableLocations+ case appStays}func encode(to encoder: any Encoder) throws {@@ -139,6 +147,7 @@ struct LeftoversCommand: AsyncParsableCommand {try container.encode(appSize, forKey: .appSize)try container.encode(leftovers, forKey: .leftovers)try container.encode(unreadableLocations, forKey: .unreadableLocations)+ try container.encode(appStays, forKey: .appStays)}}@@ -158,14 +167,22 @@ struct LeftoversCommand: AsyncParsableCommand {)}let leftovers = uninstallation.scan.leftovers.filter { all || $0.match.isRecommended }+ let stays = UninstallCommand.whyItStays(uninstallation)// Printed in JSON mode too, on standard error, so a script that reads an empty list still learns what// was left out or couldn't be checked.+ if let stays {+ Output.note("\(stays.description) While it stays, `peel uninstall` moves none of its files.")+ }Self.notes(uninstallation, homebrew: homebrew, hidden: uninstallation.scan.leftovers.count - leftovers.count)if output.json {let appSize = uninstallation.isAppMeasured ? uninstallation.appSize : nillet unread = uninstallation.scan.unreadableLocations- try Output.json(Report(app: target, appSize: appSize, leftovers: leftovers, unreadableLocations: unread))+ let report = Report(+ app: target, appSize: appSize, leftovers: leftovers, unreadableLocations: unread,+ appStays: stays?.description+ )+ try Output.json(report)return}let appSize = uninstallation.isAppMeasured ? Output.size(uninstallation.appSize) : "unknown"@@ -460,33 +477,54 @@ struct UninstallCommand: AsyncParsableCommand {}/// Why the app itself can't move: macOS keeps another developer's app from a terminal without App Management,- /// which the person can allow, while an app in a folder they can't write to needs an administrator.+ /// which the person can allow, while an app in a folder they can't write to needs an administrator, whom the Peel+ /// app asks through its helper, or Finder where the helper may not move it.static func whyItCannotMove(_ app: InstalledApp,- isProtectedByPrivacy: Bool+ isProtectedByPrivacy: Bool,+ isBeyondTheHelper: Bool) -> CommandFailure {let name = Output.plain(app.name)- guard isProtectedByPrivacy else {- return CommandFailure("Moving \(name) to the Trash needs administrator access. Remove it with the Peel app.")+ if isProtectedByPrivacy {+ return CommandFailure("macOS lets your terminal app move \(name) only with App Management. Allow it in System Settings > Privacy & Security > App Management, then try again, or remove it with the Peel app.")}- return CommandFailure("macOS lets your terminal app move \(name) only with App Management. Allow it in System Settings > Privacy & Security > App Management, then try again, or remove it with the Peel app.")+ guard !isBeyondTheHelper else {+ return CommandFailure("Moving \(name) to the Trash needs administrator access, and Peel's helper isn't allowed to move it from there. Move it to the Trash in Finder, which asks for an administrator's password.")+ }+ return CommandFailure("Moving \(name) to the Trash needs administrator access. Remove it with the Peel app.")}- /// Throws for an app removed elsewhere. Peel removes itself from its own Settings, after unregistering its login- /// item and privileged helper: if `peel` moved the app, the helper would stay registered with launchd and point- /// into the Trash. An agent goes by its maker's uninstaller, which also takes what it keeps in the system.- static func refuseIfRemovedElsewhere(+ /// Why `peel uninstall` leaves the app itself where it is, in the words it says it, or nil when it moves it.+ static func whyItStays(_ uninstallation: Uninstallation) -> CommandFailure? {+ let app = uninstallation.app+ if let refusal = removedElsewhere(app, installedSystemExtensions: uninstallation.installedSystemExtensions)+ ?? keptByMacOS(app) ?? partOfAnotherPackage(app) {+ return refusal+ }+ guard uninstallation.appRequiresPrivileges else { return nil }+ return whyItCannotMove(+ app,+ isProtectedByPrivacy: FileAccess.isProtectedByPrivacy(app.url),+ isBeyondTheHelper: uninstallation.isAppBeyondTheHelper+ )+ }++ /// Why an app removed elsewhere never moves with `peel`, or nil for any other app. Peel removes itself from its own+ /// Settings, after unregistering its login item and privileged helper: if `peel` moved the app, the helper would+ /// stay registered with launchd and point into the Trash. An agent goes by its maker's uninstaller, which also+ /// takes what it keeps in the system.+ static func removedElsewhere(_ target: InstalledApp,installedSystemExtensions: CarriedSystemExtensions = .none- ) throws {+ ) -> CommandFailure? {switch RemovedElsewhere.of(target, installedSystemExtensions: installedSystemExtensions) {case nil:- return+ return nilcase .byRemovePeel:- throw CommandFailure("Peel removes itself from its own settings, which unregisters the helper first. Open Peel and click Remove Peel in Settings.")+ return CommandFailure("Peel removes itself from its own settings, which unregisters the helper first. Open Peel and click Remove Peel in Settings.")case .byItsMaker(let uninstaller) where uninstaller.removes != nil:let product = Output.plain(uninstaller.removes ?? "")- throw CommandFailure("\(Output.plain(target.name)) is \(uninstaller.maker)'s uninstaller for \(product): open it, and it removes \(product) and then itself. See \(uninstaller.instructions.absoluteString)")+ return CommandFailure("\(Output.plain(target.name)) is \(uninstaller.maker)'s uninstaller for \(product): open it, and it removes \(product) and then itself. See \(uninstaller.instructions.absoluteString)")case .byItsMaker(let uninstaller):let step = switch uninstaller.step {case .command(let command): "run `\(command)`"@@ -494,9 +532,9 @@ struct UninstallCommand: AsyncParsableCommand {case .inTheApp: "use the uninstall command in \(Output.plain(target.name))"case .onItsDiskImage: "use the uninstaller on the disk image it came on"}- throw CommandFailure("\(Output.plain(target.name)) is removed with \(uninstaller.maker)'s own uninstaller, which also takes what it keeps in the system: \(step). See \(uninstaller.instructions.absoluteString)")+ return CommandFailure("\(Output.plain(target.name)) is removed with \(uninstaller.maker)'s own uninstaller, which also takes what it keeps in the system: \(step). See \(uninstaller.instructions.absoluteString)")case .byFinder(let carried) where !carried.isKnown:- throw CommandFailure("Peel can't look inside \(Output.plain(target.name)) to see which system extensions it carries, and macOS removes those only when the app goes to the Trash in Finder. Move the app to the Trash in Finder.")+ return CommandFailure("Peel can't look inside \(Output.plain(target.name)) to see which system extensions it carries, and macOS removes those only when the app goes to the Trash in Finder. Move the app to the Trash in Finder.")case .byFinder(let carried):let names = carried.nameslet extensions = names.map(Output.plain).joined(separator: ", ")@@ -505,16 +543,21 @@ struct UninstallCommand: AsyncParsableCommand {let settings = carried.systemSettingsDeletesThem? " If \(stays), in System Settings > General > Login Items & Extensions, choose By Category, click the Info button beside Network Extensions, then click the More button beside \(beside) and choose Delete Extension.": ""- throw CommandFailure("macOS installed \(what) that came with \(Output.plain(target.name)) (\(extensions)), and only macOS can remove \(them). Move the app to the Trash in Finder, which asks macOS to remove \(them).\(settings)")+ return CommandFailure("macOS installed \(what) that came with \(Output.plain(target.name)) (\(extensions)), and only macOS can remove \(them). Move the app to the Trash in Finder, which asks macOS to remove \(them).\(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 }+ static func keptByMacOS(_ target: InstalledApp) -> CommandFailure? {+ guard target.isSystemProtected else { return nil }+ return CommandFailure("macOS protects \(Output.plain(target.name)), so it can't be removed.")+ }++ /// Why an app inside another package, such as a helper app inside the app it serves, never moves on its own: it+ /// would be cut out of that package. Nil for any other app.+ static func partOfAnotherPackage(_ target: InstalledApp) -> CommandFailure? {+ guard let package = target.enclosingPackage else { return nil }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.")+ return 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@@ -541,13 +584,11 @@ struct UninstallCommand: AsyncParsableCommand {func run() async throws {let apps = await AppCatalog.installedApps()let target = try AppLookup.app(matching: app, in: apps)- try Self.refuseIfRemovedElsewhere(- target, installedSystemExtensions: await AppExtensions.installed(carriedBy: target)- )- guard !target.isSystemProtected else {- throw CommandFailure("macOS protects \(Output.plain(target.name)), so it can't be removed.")+ let carried = await AppExtensions.installed(carriedBy: target)+ if let refusal = Self.removedElsewhere(target, installedSystemExtensions: carried)+ ?? Self.keptByMacOS(target) ?? Self.partOfAnotherPackage(target) {+ throw refusal}- try Self.refuseIfPartOfAnotherPackage(target)if resetPrivacy {try Self.refuseIfPrivacyCannotBeReset(target)}@@ -568,11 +609,7 @@ struct UninstallCommand: AsyncParsableCommand {receipts: homebrew.receipts)}- let access = try Self.note(- for: uninstallation.appRequiresPrivileges- ? Self.whyItCannotMove(target, isProtectedByPrivacy: FileAccess.isProtectedByPrivacy(target.url)) : nil,- dryRun: dryRun- )+ let access = try Self.note(for: Self.whyItStays(uninstallation), dryRun: dryRun)[running, access].compactMap(\.self).forEach(Output.note)if let note = UnreadableHistory.note() {@@ -667,8 +704,8 @@ struct UninstallCommand: AsyncParsableCommand {try Cleanup.end(failed: !result.failures.isEmpty || privacy?.failed == true, recorded: recorded)}- /// Returns the notes printed before the question: what the scan couldn't fully check, and files that- /// will stay. The user needs to see them before agreeing to the move.+ /// Returns the notes printed before the question: what the scan couldn't fully check, files that will stay, and+ /// Homebrew's record of the app when it stays. The user needs to see them before agreeing to the move.static func whatStays(_ plan: UninstallPlan,app: InstalledApp,@@ -679,6 +716,12 @@ struct UninstallCommand: AsyncParsableCommand {if let note = homebrew.note {notes.append(note)}+ let records = Set(scan.leftovers.filter { $0.kind == .homebrewReceipt }.map(\.url))+ let moving = Set(plan.moving.map(\.url))+ if moving.contains(app.url), moving.isDisjoint(with: records),+ let cask = CaskEvidence.installedCask(for: app, in: homebrew.casks) {+ notes.append("Homebrew installed \(Output.plain(app.name)) and will keep listing it as installed. To take it off that list, run `brew uninstall --cask \(cask.name)`: Homebrew then carries out the cask's own uninstall steps, which can delete files for good.")+ }if !scan.unreadableLocations.isEmpty {let folders = scan.unreadableLocations.map(\.url)notes.append(Output.unreadableNote(for: folders, needsFullDiskAccess: scan.needsFullDiskAccess))diff --git a/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swiftindex 0734dd64..40290f75 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift@@ -41,10 +41,75 @@ struct CommandLineTests {let app = InstalledApp(url: URL(filePath: "/Applications/Example.app"), bundleIdentifier: "org.example.app", name: "Example")- let privacy = UninstallCommand.whyItCannotMove(app, isProtectedByPrivacy: true).description- #expect(privacy.contains("App Management") && !privacy.contains("administrator"))- let permissions = UninstallCommand.whyItCannotMove(app, isProtectedByPrivacy: false).description- #expect(permissions.contains("administrator"))+ func why(privacy: Bool, beyond: Bool) -> String {+ UninstallCommand.whyItCannotMove(app, isProtectedByPrivacy: privacy, isBeyondTheHelper: beyond).description+ }+ #expect(why(privacy: true, beyond: false).contains("App Management"))+ #expect(!why(privacy: true, beyond: false).contains("administrator"))+ #expect(why(privacy: false, beyond: false).contains("administrator"))+ let beyond = why(privacy: false, beyond: true)+ #expect(beyond.contains("in Finder") && !beyond.contains("Peel app"), "the app would send it back here")+ }++ @Test func leftoversSaysWhyTheAppItselfWouldStay() throws {+ let editor = InstalledApp(+ url: URL(filePath: "/Applications/Editor.app", directoryHint: .isDirectory),+ bundleIdentifier: "com.example.editor", name: "Editor"+ )+ let notes = InstalledApp(+ url: URL(filePath: "/System/Applications/Notes.app", directoryHint: .isDirectory),+ bundleIdentifier: "org.example.notes", name: "Notes", isSystemProtected: true+ )+ let cache = leftover(URL(filePath: "/Users/me/Library/Caches/com.example.editor"))+ let scan = LeftoverScan(leftovers: [cache], unreadableLocations: [])+ let needsAnAdministrator = Uninstallation(app: editor, appSize: 1, appRequiresPrivileges: true, scan: scan)+ var beyondTheHelper = needsAnAdministrator+ beyondTheHelper.isAppBeyondTheHelper = true++ #expect(UninstallCommand.whyItStays(uninstallation(app: editor, leftovers: [cache])) == nil)+ let protected = UninstallCommand.whyItStays(uninstallation(app: notes, leftovers: [cache]))?.description+ #expect(protected == "macOS protects Notes, so it can't be removed.")+ #expect(UninstallCommand.whyItStays(needsAnAdministrator)?.description.contains("with the Peel app") == true)+ #expect(UninstallCommand.whyItStays(beyondTheHelper)?.description.contains("in Finder") == true)++ let report = { (stays: String?) throws -> [String: Any] in+ let leftovers = LeftoversCommand.Report(+ app: notes, appSize: nil, leftovers: [cache], unreadableLocations: [], appStays: stays+ )+ let json = try Output.jsonText(leftovers)+ return try #require(JSONSerialization.jsonObject(with: Data(json.utf8)) as? [String: Any])+ }+ #expect(try report(protected)["appStays"] as? String == protected)+ #expect(try report(nil)["appStays"] is NSNull, "a script always finds the key")+ }++ @Test func saysHomebrewKeepsListingAnAppWhoseCaskroomRecordStays() {+ let app = InstalledApp(+ url: URL(filePath: "/Applications/Editor.app", directoryHint: .isDirectory),+ bundleIdentifier: "com.example.editor", name: "Editor"+ )+ let cask = HomebrewPackage(+ name: "editor", kind: .cask, installedVersion: "1.0", appNames: ["Editor.app"],+ appTargets: ["/Applications/Editor.app"]+ )+ let record = Leftover(+ url: URL(filePath: "/opt/homebrew/Caskroom/editor", directoryHint: .isDirectory),+ kind: .homebrewReceipt,+ match: LeftoverMatch(reason: .homebrewReceipt, confidence: .certain, sharedWith: []),+ size: 10,+ isMeasured: true,+ requiresPrivileges: false+ )+ let scan = LeftoverScan(leftovers: [record], unreadableLocations: [])+ let editor = Uninstallation(app: app, appSize: 1, appRequiresPrivileges: false, scan: scan)+ let homebrew = CaskLookup.Answer(casks: [cask])++ let keepingIt = UninstallPlan.make(editor, keepLeftovers: true) { _ in nil }+ #expect(UninstallCommand.whatStays(keepingIt, app: app, homebrew: homebrew, scan: scan) == [+ "Homebrew installed Editor and will keep listing it as installed. To take it off that list, run `brew uninstall --cask editor`: Homebrew then carries out the cask's own uninstall steps, which can delete files for good.",+ ])+ let movingIt = UninstallPlan.make(editor, keepLeftovers: false) { _ in nil }+ #expect(UninstallCommand.whatStays(movingIt, app: app, homebrew: homebrew, scan: scan).isEmpty)}/// What the Trash can't bring back is said before the question in every output: with `--json` on standard error.@@ -443,7 +508,9 @@ struct CommandLineTests {let app = InstalledApp(url: URL(filePath: "/Applications/Editor.app", directoryHint: .isDirectory), bundleIdentifier: "com.example.editor", name: "Editor")let unread = SearchLocation(kind: .containers, url: URL(filePath: "/Users/me/Library/Containers", directoryHint: .isDirectory))- let report = LeftoversCommand.Report(app: app, appSize: nil, leftovers: [], unreadableLocations: [unread])+ let report = LeftoversCommand.Report(+ app: app, appSize: nil, leftovers: [], unreadableLocations: [unread], appStays: nil+ )let json = try #require(JSONSerialization.jsonObject(with: Data(try Output.jsonText(report).utf8)) as? [String: Any]@@ -859,8 +926,8 @@ struct CommandLineTests {#expect(peel.isPeelItself)#expect(!other.isPeelItself)- #expect(throws: CommandFailure.self) { try UninstallCommand.refuseIfRemovedElsewhere(peel) }- try UninstallCommand.refuseIfRemovedElsewhere(other)+ #expect(UninstallCommand.removedElsewhere(peel) != nil)+ #expect(UninstallCommand.removedElsewhere(other) == nil)}/// A management or security agent goes by its maker's uninstaller, which `peel` names instead of moving it.@@ -871,8 +938,7 @@ struct CommandLineTests {teamIdentifier: "PXPZ95SK77")- let failure = #expect(throws: CommandFailure.self) { try UninstallCommand.refuseIfRemovedElsewhere(agent) }- #expect(failure?.description.contains("uninstall_gp.sh") == true)+ #expect(UninstallCommand.removedElsewhere(agent)?.description.contains("uninstall_gp.sh") == true)}@Test func refusesToUninstallAVPNAndSaysWhereItsOwnUninstallIs() throws {@@ -881,8 +947,7 @@ struct CommandLineTests {url: URL(filePath: "/Applications/\(name).app", directoryHint: .isDirectory),bundleIdentifier: identifier, name: name, teamIdentifier: team)- return #expect(throws: CommandFailure.self) { try UninstallCommand.refuseIfRemovedElsewhere(app) }?- .description+ return UninstallCommand.removedElsewhere(app)?.description}#expect(refusal("com.express.vpn", team: "TC292Y5427", name: "ExpressVPN")?@@ -898,9 +963,7 @@ struct CommandLineTests {name: "Chrome Remote Desktop Host Uninstaller", teamIdentifier: "EQHXZ8M8AV")- let failure = #expect(throws: CommandFailure.self) {- try UninstallCommand.refuseIfRemovedElsewhere(uninstaller)- }+ let failure = UninstallCommand.removedElsewhere(uninstaller)#expect(failure?.description == "Chrome Remote Desktop Host Uninstaller is Google's uninstaller for Chrome Remote Desktop Host: open it, and it removes Chrome Remote Desktop Host and then itself. See https://support.google.com/chrome/answer/1649523")}@@ -910,25 +973,19 @@ struct CommandLineTests {bundleIdentifier: "org.example.app", name: "Example")- let failure = #expect(throws: CommandFailure.self) {- try UninstallCommand.refuseIfRemovedElsewhere(- app, installedSystemExtensions: CarriedSystemExtensions(names: ["Example Filter"])- )- }- let deletable = #expect(throws: CommandFailure.self) {- try UninstallCommand.refuseIfRemovedElsewhere(- app,- installedSystemExtensions: CarriedSystemExtensions(names: ["Example Filter"], systemSettingsDeletesThem: true)- )- }- let several = #expect(throws: CommandFailure.self) {- try UninstallCommand.refuseIfRemovedElsewhere(- app,- installedSystemExtensions: CarriedSystemExtensions(- names: ["Example Filter", "Example Proxy"], systemSettingsDeletesThem: true- )+ let failure = UninstallCommand.removedElsewhere(+ app, installedSystemExtensions: CarriedSystemExtensions(names: ["Example Filter"])+ )+ let deletable = UninstallCommand.removedElsewhere(+ app,+ installedSystemExtensions: CarriedSystemExtensions(names: ["Example Filter"], systemSettingsDeletesThem: true)+ )+ let several = UninstallCommand.removedElsewhere(+ app,+ installedSystemExtensions: CarriedSystemExtensions(+ names: ["Example Filter", "Example Proxy"], systemSettingsDeletesThem: true)- }+ )#expect(failure?.description.contains("Trash in Finder") == true)#expect(failure?.description.contains("System Settings") == false, "a step System Settings isn't proved to take")#expect(deletable?.description.contains("Trash in Finder") == true)@@ -937,7 +994,7 @@ struct CommandLineTests {) == true)#expect(deletable?.description.contains("the More button beside it and choose Delete Extension.") == true)#expect(several?.description.contains("the More button beside each and choose Delete Extension.") == true)- try UninstallCommand.refuseIfRemovedElsewhere(app)+ #expect(UninstallCommand.removedElsewhere(app) == nil)}@Test func refusesToUninstallAnAppInsideAnotherApp() throws {@@ -948,8 +1005,8 @@ struct CommandLineTests {)let alone = InstalledApp(url: outer, bundleIdentifier: "org.example.outer", name: "Outer")- #expect(throws: CommandFailure.self) { try UninstallCommand.refuseIfPartOfAnotherPackage(inner) }- try UninstallCommand.refuseIfPartOfAnotherPackage(alone)+ #expect(UninstallCommand.partOfAnotherPackage(inner) != nil)+ #expect(UninstallCommand.partOfAnotherPackage(alone) == nil)}/// A privacy reset that was asked for but can never happen is refused before anything is listed. If it were