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
Keep virtual machines and Windows bottles unselected
Țugui Dragoș0b5bb1c5eb8b
diff --git a/GUIDE.md b/GUIDE.mdindex 6a9fb1ae..e2d09601 100644--- a/GUIDE.md+++ b/GUIDE.md@@ -24,10 +24,10 @@ and how to get it, [SAFETY.md](SAFETY.md) what it protects, [PRIVACY.md](PRIVACY- **What may exist nowhere else is left to you.** A folder holding a crypto wallet, a signing key, a passworddatabase, or a repository is shown with its reason and not selected, and so is a place where an app keeps what mayexist only on this Mac, such as local mail, message history, sign-in codes, a browser's or a remote access app's- saved passwords, VPN connections, a torrent client's list of torrents, a game's saves, a database, a database- client's saved connections, a debugging proxy's rules, a video editor's projects, an AI app's conversations, a code- editor's notes, unsaved files, and local history, an app's own backups, or the sign-in a tool saved when you logged- in. Uninstalling Xcode lists the simulators it made the same way.+ saved passwords, VPN connections, a torrent client's list of torrents, a game's saves, virtual machines and Windows+ bottles, a database, a database client's saved connections, a debugging proxy's rules, a video editor's projects, an+ AI app's conversations, a code editor's notes, unsaved files, and local history, an app's own backups, or the+ sign-in a tool saved when you logged in. Uninstalling Xcode lists the simulators it made the same way.- **Shared or guessed, never selected.** A file another installed app also uses is shown but never selected, and afolder holding another installed app's own data, such as Xcode's in `~/Library/Developer`, can't be selected atall, and neither can anything that syncs to your other devices, an app's container holding your documents, or adiff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex 5db62e3e..f495b6db 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -114805,6 +114805,112 @@}}},+ "Not selected: this holds virtual machines or Windows bottles, with the systems, apps, and files in them, which may exist only on this Mac. Once the Trash is emptied, they’re gone for good unless you have a backup." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nevybráno: obsahuje virtuální počítače nebo láhve Windows i se systémy, aplikacemi a soubory v nich, které mohou existovat jen v tomto Macu. Jakmile se koš vysype, budou trvale ztraceny, pokud nemáte zálohu."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nicht ausgewählt: Dieses Objekt enthält virtuelle Maschinen oder Windows-Bottles mit den Systemen, Apps und Dateien darin, die es möglicherweise nur auf diesem Mac gibt. Sobald der Papierkorb entleert ist, sind sie endgültig verloren, sofern du kein Backup hast."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Sin seleccionar: contiene máquinas virtuales o botellas de Windows, con sus sistemas operativos, apps y archivos, que puede que solo existan en este Mac. En cuanto se vacíe la papelera, se perderán definitivamente, salvo que tengas una copia de seguridad."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non sélectionné : il contient des machines virtuelles ou des bouteilles Windows, avec les systèmes, les apps et les fichiers qui s’y trouvent, qui n’existent peut-être que sur ce Mac. Une fois la corbeille vidée, elles sont perdues définitivement, sauf si vous en avez une sauvegarde."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non selezionato: contiene macchine virtuali o bottiglie Windows, con i sistemi operativi, le app e i file al loro interno, che potrebbero esistere solo su questo Mac. Una volta svuotato il Cestino, sono perse definitivamente, a meno che tu non abbia un backup."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未選択: ここには、仮想マシンまたはWindowsボトルと、その中にあるシステム、アプリ、ファイルが含まれており、このMacにしか存在しない可能性があります。ゴミ箱を空にすると、バックアップがない限り、二度と取り戻せなくなります。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "선택되지 않음: 가상 컴퓨터 또는 Windows 보틀과 그 안의 시스템, 앱 및 파일이 들어 있으며, 이는 이 Mac에만 있을 수 있습니다. 휴지통을 비우면 백업이 없는 한 영구적으로 사라집니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Niet geselecteerd: dit bevat virtuele machines of Windows-bottles, met de systemen, apps en bestanden daarin, die misschien alleen op deze Mac staan. Zodra de prullenmand is geleegd, zijn ze definitief weg, tenzij je een back-up hebt."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nie zaznaczono: zawiera maszyny wirtualne lub butelki Windows, które mogą istnieć tylko na tym Macu, wraz ze znajdującymi się w nich systemami, aplikacjami i plikami. Po opróżnieniu Kosza przepadną na zawsze, chyba że masz backup."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Não selecionado: este item contém máquinas virtuais ou bottles do Windows, com os sistemas, apps e arquivos dentro delas, que podem existir só neste Mac. Depois que o Lixo for esvaziado, elas se perdem definitivamente, a menos que você tenha um backup."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Neselectat: acest articol conține mașini virtuale sau sticle Windows, cu sistemele, aplicațiile și fișierele din ele, care pot exista doar pe acest Mac. După golirea Coșului, acestea se pierd definitiv, dacă nu aveți un backup."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не выбрано: здесь хранятся виртуальные машины или бутылки Windows с системами, приложениями и файлами в них, и, возможно, они есть только на этом Mac. После очистки Корзины они будут потеряны безвозвратно, если у Вас нет резервной копии."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Inte markerad: den innehåller virtuella maskiner eller Windows-flaskor, med systemen, apparna och filerna i dem, som kanske bara finns på den här datorn. När papperskorgen har tömts är de borta för alltid, om du inte har en säkerhetskopia."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Seçilmedi: bu, içlerindeki sistemler, uygulamalar ve dosyalarla birlikte, yalnızca bu Mac’te bulunabilecek sanal makineleri veya Windows bottle’larını içerir. Çöp Sepeti boşaltıldığında, yedeklemeniz yoksa bunlar kalıcı olarak gider."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не вибрано: тут зберігаються віртуальні машини або пляшки Windows разом із системами, програмами та файлами в них, які можуть існувати лише на цьому Mac. Коли Смітник буде очищено, їх буде втрачено назавжди, якщо у вас немає резервної копії."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未选择:此处存有虚拟机或Windows容器,以及其中的操作系统、App和文件,这些内容可能仅存在于这台Mac上。一旦清倒废纸篓,除非你有备份,否则它们将永久丢失。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未選取:其中存有虛擬機器或Windows容器,連同它們內含的系統、App和檔案,這些內容可能只存在於這部Mac上。一旦清空「垃圾桶」,除非你有備份,否則它們就會永久消失。"+ }+ }+ }+ },"Not selected: this holds what you made with the app, such as saved games, databases, or the app’s own backups, which may exist only on this Mac. Once the Trash is emptied, it’s gone for good unless you have another copy." : {"localizations" : {"cs" : {diff --git a/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift b/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swiftindex 2b347ba5..7947af00 100644--- a/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift+++ b/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift@@ -420,6 +420,8 @@ extension HoldBack {case .holdsWorkMadeWithTheApp:"holds what you made with the app, such as saved games, databases, or its backups, that may exist only here"case .holdsSimulators: "holds the app's simulators, with the apps installed in them and their data"+ case .holdsVirtualMachines:+ "holds virtual machines or Windows bottles, with the systems, apps, and files in them"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 a folder that belongs to macOS or to another installed app"diff --git a/Packages/PeelCore/Sources/PeelCore/Duplicates/DuplicateFinder.swift b/Packages/PeelCore/Sources/PeelCore/Duplicates/DuplicateFinder.swiftindex d9024542..63bee84a 100644--- a/Packages/PeelCore/Sources/PeelCore/Duplicates/DuplicateFinder.swift+++ b/Packages/PeelCore/Sources/PeelCore/Duplicates/DuplicateFinder.swift@@ -155,6 +155,11 @@ public struct DuplicateFinder: Sendable {"vmwarevm",// UTM, conforming to `com.apple.package`: Platform/macOS/Info.plist in github.com/utmapp/UTM"utm",+ // VirtualBuddy, a "VirtualBuddy VM" package: VirtualBuddy/Info.plist in github.com/insidegui/VirtualBuddy+ "vbvm",+ // Viable, "its new .vimi bundles", from its maker:+ // eclecticlight.co/2023/08/15/macos-virtualisation-on-apple-silicon-major-changes-in-viable-beta-9+ "vimi",]/// Finds folders whose whole contents are identical, then identical files. Files are compared by size, thendiff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swiftindex beebce73..a08cbf57 100644--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift@@ -249,6 +249,19 @@ enum KeptOnlyHere {("Library/Application Support/BBEdit", nil, .holdsWorkMadeWithTheApp),("Library/BBEdit", "Auto-Save Recovery", .holdsWorkMadeWithTheApp),("Library/Containers/com.barebones.bbedit", nil, .holdsWorkMadeWithTheApp),+ // OrbStack's FAQ: the data of its containers, images, volumes, and machines.+ ("Library/Group Containers/HUAQ24HBR6.dev.orbstack", "data", .holdsVirtualMachines),+ // Docker's FAQ for Mac: its containers and images in one disk image, `Data/vms/0/data/Docker.raw`.+ ("Library/Containers/com.docker.docker", "Data/vms", .holdsVirtualMachines),+ // Rancher Desktop's `paths_darwin.go`: its virtual machine in `lima`, and its snapshots.+ ("Library/Application Support/rancher-desktop", "lima", .holdsVirtualMachines),+ ("Library/Application Support/rancher-desktop", "snapshots", .holdsVirtualMachines),+ // Parallels' KB 117333: where the App Store edition keeps its virtual machines.+ (+ "Library/Group Containers/4C6364ACXT.com.parallels.desktop.appstore",+ "Shared/Parallels",+ .holdsVirtualMachines+ ),]/// The same, in the Library every account on the Mac shares.@@ -280,6 +293,7 @@ enum KeptOnlyHere {}if let first = held.min(by: { $0.order < $1.order }) { return first.reason }}+ if namesAVirtualMachine(item.last ?? "") { return .holdsVirtualMachines }return namesWorkMadeWithAnApp(item.last ?? "") ? .holdsWorkMadeWithTheApp : nil}@@ -302,9 +316,26 @@ enum KeptOnlyHere {}static func reason(seenIn contents: FolderContents) -> HoldBack? {- contents.holdsWorkMadeWithAnApp ? .holdsWorkMadeWithTheApp : nil+ if contents.holdsVirtualMachines { return .holdsVirtualMachines }+ return contents.holdsWorkMadeWithAnApp ? .holdsWorkMadeWithTheApp : nil+ }++ /// Whether a name is a virtual machine's or a Windows bottle's, as each maker gives it: VirtualBuddy's,+ /// Parallels', VMware Fusion's, UTM's, and Viable's packages, the `drive_c` Wine makes in every prefix, which+ /// CrossOver and Whisky call bottles, and the `86box.cfg` of an 86Box machine.+ static func namesAVirtualMachine(_ name: String) -> Bool {+ // A walk asks this of every name, so a name that can't end like one is passed over before it is copied.+ guard let last = name.utf8.last, lastLetters.contains(last | 0x20) else { return false }+ let name = name.lowercased()+ return name == "drive_c" || name == "86box.cfg"+ || virtualMachinePackages.contains { name.hasSuffix($0) && name.count > $0.count }}+ private static let virtualMachinePackages = [".vbvm", ".pvm", ".vmwarevm", ".utm", ".vimi"]+ private static let lastLetters: Set<UInt8> = [+ UInt8(ascii: "m"), UInt8(ascii: "i"), UInt8(ascii: "c"), UInt8(ascii: "g"),+ ]+/// Whether an app gives this name to the person's work or its copies, whichever app it is: backups, and/// `Resolve Disk Database`, where DaVinci Resolve's Reference Manual keeps local project libraries by default.static func namesWorkMadeWithAnApp(_ name: String) -> Bool {diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swiftindex 218fd88e..4ea18611 100644--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swift+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swift@@ -103,6 +103,9 @@ public enum HoldBack: String, Sendable, Hashable {case holdsWorkMadeWithTheApp/// Simulators, with the apps installed in them and their data, which may exist only on this Mac.case holdsSimulators+ /// Virtual machines or Windows bottles, with the systems, apps, and files in them, which may exist only on this+ /// Mac (`KeptOnlyHere`).+ case holdsVirtualMachines/// A wallet or a key `ProtectedData` names is inside, and `RemovalGuard` refuses to move the folder around it.case holdsKeys/// Work kept nowhere else is inside a cache folder, such as an editor's local history of the person's files, anddiff --git a/Packages/PeelCore/Sources/PeelCore/Support/FileSize.swift b/Packages/PeelCore/Sources/PeelCore/Support/FileSize.swiftindex c75578f4..bd86b835 100644--- a/Packages/PeelCore/Sources/PeelCore/Support/FileSize.swift+++ b/Packages/PeelCore/Sources/PeelCore/Support/FileSize.swift@@ -18,6 +18,8 @@ public struct FolderContents: Sendable, Hashable {/// True when something directly inside goes by a name an app gives to the person's work or its copies/// (`KeptOnlyHere.namesWorkMadeWithAnApp(_:)`): a file, or a folder that holds something.public let holdsWorkMadeWithAnApp: Bool+ /// True when a virtual machine or a Windows bottle was seen inside (`KeptOnlyHere.namesAVirtualMachine(_:)`).+ public let holdsVirtualMachines: Bool/// The latest modification date of anything inside. A folder's own date does not change when a file in/// it is rewritten in place.public let newestChange: Date?@@ -41,6 +43,7 @@ public struct FolderContents: Sendable, Hashable {holdsWallet: Bool = false,holdsPasswordDatabase: Bool = false,holdsWorkMadeWithAnApp: Bool = false,+ holdsVirtualMachines: Bool = false,newestChange: Date? = nil,couldNotBeRead: Bool = false,closedByPermissions: Bool = false,@@ -52,6 +55,7 @@ public struct FolderContents: Sendable, Hashable {self.holdsWallet = holdsWalletself.holdsPasswordDatabase = holdsPasswordDatabaseself.holdsWorkMadeWithAnApp = holdsWorkMadeWithAnApp+ self.holdsVirtualMachines = holdsVirtualMachinesself.newestChange = newestChangeself.couldNotBeRead = couldNotBeReadself.closedByPermissions = closedByPermissions@@ -211,6 +215,7 @@ public enum FileSize {var holdsWallet = isWallet(url.lastPathComponent)var holdsPasswordDatabase = isPasswordDatabase(url.lastPathComponent)var holdsWorkMadeWithAnApp = false+ var holdsVirtualMachines = KeptOnlyHere.namesAVirtualMachine(url.lastPathComponent)var newestChange: Date?// A file with several names goes only once every name has gone, so it counts once, and only when all of// its names are inside.@@ -227,6 +232,9 @@ public enum FileSize {if repositoryMarkers.contains(file.lastPathComponent) { holdsRepository = true }if isWallet(file.lastPathComponent) { holdsWallet = true }if isPasswordDatabase(file.lastPathComponent) { holdsPasswordDatabase = true }+ if !holdsVirtualMachines, KeptOnlyHere.namesAVirtualMachine(file.lastPathComponent) {+ holdsVirtualMachines = true+ }if !holdsWorkMadeWithAnApp, enumerator.level == 2,KeptOnlyHere.namesWorkMadeWithAnApp(file.deletingLastPathComponent().lastPathComponent) {holdsWorkMadeWithAnApp = true@@ -265,6 +273,7 @@ public enum FileSize {holdsWallet: holdsWallet,holdsPasswordDatabase: holdsPasswordDatabase,holdsWorkMadeWithAnApp: holdsWorkMadeWithAnApp,+ holdsVirtualMachines: holdsVirtualMachines,newestChange: newestChange,couldNotBeRead: refused.happened,closedByPermissions: refused.closedByPermissions,diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DuplicateFinderTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DuplicateFinderTests.swiftindex 7689473e..149473ad 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/DuplicateFinderTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/DuplicateFinderTests.swift@@ -684,7 +684,11 @@ struct DuplicateFinderTests {@Test func aVirtualMachineIsADocumentEvenWithItsAppGone() async throws {let directory = try TemporaryDirectory()let disk = randomData(count: 200_000)- for machine in ["Windows.pvm", "Windows copy.pvm", "Fedora.vmwarevm", "Fedora copy.vmwarevm", "Debian.utm", "Debian copy.utm"] {+ let machines = [+ "Windows.pvm", "Windows copy.pvm", "Fedora.vmwarevm", "Fedora copy.vmwarevm", "Debian.utm",+ "Debian copy.utm", "Sonoma.vbvm", "Sonoma copy.vbvm", "Ventura.vimi", "Ventura copy.vimi",+ ]+ for machine in machines {try directory.file("home/Documents/\(machine)/disk.hds", contents: disk)try directory.file("home/Documents/\(machine)/\(machine.count).txt", contents: Data(machine.utf8))}diff --git a/Packages/PeelCore/Tests/PeelCoreTests/FileSizeTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/FileSizeTests.swiftindex 921ab766..6076ab35 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/FileSizeTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/FileSizeTests.swift@@ -491,6 +491,32 @@ struct FileSizeTests {}}+ @Test func reportsVirtualMachinesAndBottlesInside() async throws {+ let directory = try TemporaryDirectory()+ var holding: [URL] = []+ for (folder, file) in [+ ("library", "library/Sonoma.vbvm/Disk.img"), ("parallels", "parallels/Windows 11.pvm/config.pvs"),+ ("fusion", "fusion/Fedora.vmwarevm/Fedora.vmx"), ("utm", "utm/Debian.utm/config.plist"),+ ("viable", "viable/Ventura.vimi/Settings.plist"), ("bottles", "bottles/Steam/drive_c/windows/win.ini"),+ ("machines", "machines/DOS 6/86box.cfg"),+ ] {+ holding.append(try directory.directory(folder))+ try directory.file(file, bytes: 64)+ }+ let alone = try directory.directory("Alone.vbvm")+ try directory.file("Alone.vbvm/Disk.img", bytes: 64)+ let lookalike = try directory.directory("lookalike")+ try directory.file("lookalike/drive_cache/data", bytes: 64)+ try directory.file("lookalike/86box_global.cfg", bytes: 64)+ try directory.file("lookalike/notes.utm.txt", bytes: 64)+ try directory.file("lookalike/.utm", bytes: 64)++ for folder in holding + [alone] {+ #expect(await FileSize.contents(of: folder)?.holdsVirtualMachines == true, "\(folder.lastPathComponent)")+ }+ #expect(await FileSize.contents(of: lookalike)?.holdsVirtualMachines == false)+ }+@Test func reportsWorkAnAppNamesDirectlyInside() async throws {let directory = try TemporaryDirectory()let novels = try directory.directory("novels")diff --git a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swiftindex 40ceb309..3c4d3078 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift@@ -132,6 +132,17 @@ struct KeptOnlyHereTests {.holdsWorkMadeWithTheApp),("Projects/Resolve Disk Database", .holdsWorkMadeWithTheApp),+ ("Library/Group Containers/HUAQ24HBR6.dev.orbstack", .holdsVirtualMachines),+ ("Library/Group Containers/HUAQ24HBR6.dev.orbstack/data/data.img", .holdsVirtualMachines),+ ("Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw", .holdsVirtualMachines),+ ("Library/Application Support/rancher-desktop/lima/0/diffdisk", .holdsVirtualMachines),+ ("Library/Application Support/rancher-desktop/snapshots/a1b2", .holdsVirtualMachines),+ (+ "Library/Group Containers/4C6364ACXT.com.parallels.desktop.appstore/Shared/Parallels/Windows 11.pvm",+ .holdsVirtualMachines+ ),+ ("Parallels/Windows 11.pvm", .holdsVirtualMachines),+ ("Library/Application Support/CrossOver/Bottles/Steam/drive_c", .holdsVirtualMachines),("Library/Application Support/Tunnelblick/Configurations/work.tblk", .holdsVPNConnections),("Library/Application Support/Viscosity", .holdsVPNConnections),("Library/Application Support/Steam", .holdsWorkMadeWithTheApp),@@ -200,6 +211,7 @@ struct KeptOnlyHereTests {"Library/Preferences/com.carriez.RustDesk.plist", "Library/Application Support/MongoDB Compass/Cache","Library/Containers/com.sequel-ace.sequel-ace/Data/Library/Caches","Library/BBEdit/Document State.plist",+ "Library/Containers/com.docker.docker/Data/log", "Library/Application Support/rancher-desktop/rd-engine","Library/Application Support/Dolphin/Cache", "Library/Application Support/Dolphin/Logs","Library/Containers/com.microsoft.Word/Data/Library/Caches","Library/Containers/com.microsoft.Excel/Data/Library/Preferences",diff --git a/Packages/PeelCore/Tests/PeelCoreTests/LeftoverScannerTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/LeftoverScannerTests.swiftindex a87c3fa9..f77eb43e 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/LeftoverScannerTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/LeftoverScannerTests.swift@@ -2117,6 +2117,27 @@ struct LeftoverScannerTests {#expect(found["Folx3"]?.heldBack == .holdsTorrents)}+ @Test func aFolderHoldingVirtualMachinesOrBottlesIsNotSelected() async throws {+ let directory = try TemporaryDirectory()+ try directory.file("home/Library/Application Support/Tidewater/Sonoma.vbvm/Disk.img")+ try directory.file("home/Library/Application Support/Tidewater Bottles/Steam/drive_c/windows/win.ini")+ try directory.file("home/Library/Caches/Tidewater/cache.db")+ let tidewater = InstalledApp(+ url: URL(filePath: "/Applications/Tidewater.app"),+ bundleIdentifier: "org.example.tidewater",+ name: "Tidewater"+ )++ let scan = await LeftoverScanner(environment: environment(in: directory))+ .scan(tidewater, installedApps: [tidewater])+ let found = Dictionary(uniqueKeysWithValues: scan.leftovers.map { ($0.url.path, $0.match) })+ let library = directory.url.appending(path: "home/Library").path++ #expect(found["\(library)/Application Support/Tidewater"]?.heldBack == .holdsVirtualMachines)+ #expect(found["\(library)/Application Support/Tidewater"]?.isRecommended == false)+ #expect(found["\(library)/Caches/Tidewater"]?.isRecommended == true)+ }+@Test func anOfficeSuitesUserProfileIsNotSelected() async throws {let directory = try TemporaryDirectory()try directory.file("home/Library/Application Support/LibreOffice/4/user/template/Letter.ott")diff --git a/Peel/Views/Presentation.swift b/Peel/Views/Presentation.swiftindex a71ac349..c5d957cd 100644--- a/Peel/Views/Presentation.swift+++ b/Peel/Views/Presentation.swift@@ -392,6 +392,8 @@ extension HoldBack {"Not selected: this holds what you made with the app, such as saved games, databases, or the app’s own backups, which may exist only on this Mac. Once the Trash is emptied, it’s gone for good unless you have another copy."case .holdsSimulators:"Not selected: this holds the app’s simulators, with the apps installed in them and their data, which may exist only on this Mac. Once the Trash is emptied, they’re gone for good unless you have a backup."+ case .holdsVirtualMachines:+ "Not selected: this holds virtual machines or Windows bottles, with the systems, apps, and files in them, which may exist only on this Mac. Once the Trash is emptied, they’re gone for good unless you have a backup."case .holdsKeys:"Left alone: a wallet or a key Peel protects is inside, so Peel leaves this folder where it is."case .holdsWorkKeptInACache:diff --git a/SAFETY.md b/SAFETY.mdindex c23dbc09..65fd5897 100644--- a/SAFETY.md+++ b/SAFETY.md@@ -414,14 +414,16 @@ Never selected for you, even when found:a 1Password vault kept outside an account, `.opvault` or `.agilekeychain`) inside.- What an app keeps that may exist only on this Mac: local mail, message history, a password manager's vaults andbackups and an authenticator's codes, a browser's or a remote access app's saved passwords, VPN connections and- identities, a torrent client's list of torrents, a game's saves, a database, a database client's saved connections,- a debugging proxy's rules, a video editor's projects, an AI app's conversations, a streaming app's scenes and- profiles, an office suite's own templates and dictionaries, a terminal's scripts and profiles, a code editor's- notes, unsaved files, local history, and the packages you made for it, and the sign-in a tool saved when you logged- in, such as Docker's or Cargo's, each where the app's own documentation or source says it keeps them, or where its- Homebrew definition names its folder, and anything named as an app's backups or as DaVinci Resolve's project- library, or the app's folder that keeps them. When you uninstall Xcode, the simulators it made in your home folder- are listed too, with the apps installed in them and their data, and never selected.+ identities, a torrent client's list of torrents, a game's saves, virtual machines and Windows bottles+ (VirtualBuddy's, Parallels', VMware Fusion's, UTM's, and Viable's packages, a Wine prefix with its `drive_c`, an+ 86Box machine, and the disks of Docker, OrbStack, and Rancher Desktop), a database, a database client's saved+ connections, a debugging proxy's rules, a video editor's projects, an AI app's conversations, a streaming app's+ scenes and profiles, an office suite's own templates and dictionaries, a terminal's scripts and profiles, a code+ editor's notes, unsaved files, local history, and the packages you made for it, and the sign-in a tool saved when+ you logged in, such as Docker's or Cargo's, each where the app's own documentation or source says it keeps them, or+ where its Homebrew definition names its folder, and anything named as an app's backups or as DaVinci Resolve's+ project library, or the app's folder that keeps them. When you uninstall Xcode, the simulators it made in your home+ folder are listed too, with the apps installed in them and their data, and never selected.- A copy Mail keeps of an attachment you opened, which you may have changed.- A file a program has open right now, and a disk image that is open right now.- An installer package an app keeps in Application Support, which the app may still need, and an update whose app is