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.

Say in peel when a folder belongs to macOS, not another app

Țugui Dragoșd3bdf3ca7762
diff --git a/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift b/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift
index 54d9a816..3b2a8a13 100644
--- a/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift
+++ b/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift
@@ -349,7 +349,7 @@ extension HoldBack {
case .holdsSimulators: "holds the app's simulators, with the apps installed in them and their data"
case .holdsKeys: "holds a wallet or a key Peel protects"
case .holdsWorkKeptInACache: "holds work an app keeps nowhere else, such as an editor's local history"
- case .insideAnotherAppsFolder: "inside another app's folder"
+ case .insideAnotherAppsFolder: "inside a folder that belongs to macOS or to another installed app"
case .holdsAnotherAppsData: "holds what another installed app keeps as its own"
case .beyondTheHelper: "needs an administrator, and Peel's helper may not move it"
case .leftToItsUninstaller: "removed by the app's own uninstaller once the app is in the Trash"
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift
index a9aacca1..9fe426bd 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/CommandLineTests.swift
@@ -1146,6 +1146,8 @@ struct CommandLineTests {
#expect(row(.certain, otherCopies: [URL(filePath: "/Volumes/Disk/Editor.app")])
== "bundle identifier, review: shared with /Volumes/Disk/Editor.app")
#expect(row(.possible) == "bundle identifier, review: possible match")
+ #expect(row(.likely, heldBack: .insideAnotherAppsFolder)
+ == "bundle identifier, review: inside a folder that belongs to macOS or to another installed app")
}
/// Nothing in Orphaned Files is ever suggested, so its `--remove` says what it moves instead: the group named.