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 a browser's saved passwords unselected
Țugui Dragoș6a06fed8a66c
diff --git a/GUIDE.md b/GUIDE.mdindex 8b8b8c47..291a56ba 100644--- a/GUIDE.md+++ b/GUIDE.md@@ -20,11 +20,11 @@ and how to get it, [SAFETY.md](SAFETY.md) what it protects, [PRIVACY.md](PRIVACYthe top of a Library, or inside another app's folder or one of Apple's, so it waits under Review Before Removing.So does a folder named like the app while another installed app's name holds that name, as Epic Games Launcherholds Epic: the folder may be that app's.-- **What may exist nowhere else is left to you.** A folder holding a crypto wallet, a signing key, a password- database, or a repository is shown with its reason and not selected, and so is a place where an app keeps what- may exist only on this Mac, such as local mail, message history, sign-in codes, VPN connections, a torrent client's- list of torrents, a game's saves, a database, a code editor's 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.+- **What may exist nowhere else is left to you.** A folder holding a crypto wallet, a signing key, a password database,+ or a repository is shown with its reason and not selected, and so is a place where an app keeps what may exist only on+ this Mac, such as local mail, message history, sign-in codes, a browser's saved passwords, VPN connections, a torrent+ client's list of torrents, a game's saves, a database, a code editor's 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/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swiftindex 121c5170..8ca11302 100644--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift@@ -38,6 +38,26 @@ enum KeptOnlyHere {("Library/Containers/io.ente.auth.mac", nil, .holdsPasswordsOrCodes),// Proton Authenticator's entitlements; Apple: the app's primary group container holds its store.("Library/Group Containers/group.me.proton.authenticator", nil, .holdsPasswordsOrCodes),+ // Mozilla's "Profiles - Where Firefox stores your bookmarks, passwords and other user data": each profile keeps+ // the saved passwords in `key4.db` and `logins.json`, and Firefox can be uninstalled without losing them.+ ("Library/Application Support/Firefox", "Profiles", .holdsPasswordsOrCodes),+ // Chromium's `docs/user_data_dir.md` and `password_manager_constants.cc`: each browser's folder holds its+ // profiles, most often `Default`, and a profile keeps the saved passwords in `Login Data`. Brave's folders are+ // named by its `build/config.gni` and `BRANDING`. Opera's desktop blog names its folder, which before Opera 102+ // was the profile itself.+ ("Library/Application Support/Google/Chrome", "Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/Google/Chrome Beta", "Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/Google/Chrome Dev", "Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/Google/Chrome Canary", "Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/Chromium", "Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/BraveSoftware/Brave-Browser", "Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/BraveSoftware/Brave-Browser-Beta", "Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/BraveSoftware/Brave-Browser-Dev", "Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/BraveSoftware/Brave-Browser-Nightly", "Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/BraveSoftware/Brave-Origin", "Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/BraveSoftware/Brave-Origin-Beta", "Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/BraveSoftware/Brave-Origin-Nightly", "Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/com.operasoftware.Opera", nil, .holdsPasswordsOrCodes),// Tunnelblick's "File Locations" and "Uninstalling Tunnelblick".("Library/Application Support/Tunnelblick", "Configurations", .holdsVPNConnections),// SparkLabs' "Uninstalling Viscosity (Mac)": connection data.diff --git a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swiftindex 6733cfa5..c881c5b6 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift@@ -20,6 +20,15 @@ struct KeptOnlyHereTests {.holdsPasswordsOrCodes),("Library/Group Containers/group.strongbox.mac.mcguill", .holdsPasswordsOrCodes),("Library/Containers/io.ente.auth.mac", .holdsPasswordsOrCodes),+ ("Library/Application Support/Firefox", .holdsPasswordsOrCodes),+ ("Library/Application Support/Firefox/Profiles/abcd1234.default-release/logins.json", .holdsPasswordsOrCodes),+ ("Library/Application Support/Google/Chrome", .holdsPasswordsOrCodes),+ ("Library/Application Support/Google/Chrome/Default/Login Data", .holdsPasswordsOrCodes),+ ("Library/Application Support/Google/Chrome Canary", .holdsPasswordsOrCodes),+ ("Library/Application Support/Chromium/Default", .holdsPasswordsOrCodes),+ ("Library/Application Support/BraveSoftware/Brave-Browser/Default/Login Data", .holdsPasswordsOrCodes),+ ("Library/Application Support/BraveSoftware/Brave-Origin-Nightly", .holdsPasswordsOrCodes),+ ("Library/Application Support/com.operasoftware.Opera/Login Data", .holdsPasswordsOrCodes),("Library/Application Support/Tunnelblick/Configurations/work.tblk", .holdsVPNConnections),("Library/Application Support/Viscosity", .holdsVPNConnections),("Library/Application Support/Steam", .holdsWorkMadeWithTheApp),@@ -90,6 +99,11 @@ struct KeptOnlyHereTests {"Library/Application Support/Eltima Software", "Library/Application Support/Eltima Software/Elmedia Player","Library/Caches/Sublime Text", "Library/Application Support/Sublime Merge","Library/Application Support/minecraft/versions", "Library/Application Support/Minecraft Launcher",+ "Library/Application Support/Google/Chrome/NativeMessagingHosts/org.example.host.json",+ "Library/Application Support/Chromium/NativeMessagingHosts/org.example.host.json",+ "Library/Application Support/Mozilla/NativeMessagingHosts/org.example.host.json",+ "Library/Caches/Firefox/Profiles/abcd1234.default-release", "Library/Application Support/Google",+ "Library/Application Support/Google/GoogleUpdater", "Library/Application Support/BraveSoftware",]for path in free {#expect(KeptOnlyHere.reason(for: "\(home)/\(path)", home: home, root: "/") == nil, "\(path)")diff --git a/SAFETY.md b/SAFETY.mdindex 0b7e61d4..4bbef9a7 100644--- a/SAFETY.md+++ b/SAFETY.md@@ -387,13 +387,13 @@ Never selected for you, even when found:- A folder with a repository, a wallet, a signing key, or a password database (KeePass's `.kdbx`, KeePassXC's `.keyx`,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 and- backups and an authenticator's codes, VPN connections and identities, a torrent client's list of torrents, a game's- saves, a database, 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 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, and anything named as an app's backups, 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.+ backups and an authenticator's codes, a browser's saved passwords, VPN connections and identities, a torrent client's+ list of torrents, a game's saves, a database, 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 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, and anything named as an app's backups, 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.- An installer package an app keeps in Application Support, which the app may still need, and an update whose app is