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
Leave the sign-in a tool saved when you logged in unselected
Țugui Dragoș5325564d3ba4
diff --git a/GUIDE.md b/GUIDE.mdindex ad2cfa62..364cf9a3 100644--- a/GUIDE.md+++ b/GUIDE.md@@ -23,7 +23,8 @@ 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 whatmay exist only on this Mac, such as local mail, message history, sign-in codes, VPN connections, a game's saves, a- database, or an app's own backups. Uninstalling Xcode lists the simulators it made the same way.+ database, 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 edd9cb78..402ccd41 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -93545,6 +93545,112 @@}}},+ "Not selected: this holds a sign-in to a service, such as a token a tool saved when you logged in. Once the Trash is emptied, you’d sign in again." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nevybráno: obsahuje přihlášení ke službě, například token, který si nástroj uložil, když jste se přihlásili. Jakmile se koš vysype, budete se muset znovu přihlásit."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nicht ausgewählt: Dieses Objekt enthält Anmeldedaten für einen Dienst, etwa ein Token, das ein Tool gesichert hat, als du dich angemeldet hast. Sobald der Papierkorb entleert ist, müsstest du dich nur erneut anmelden."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Sin seleccionar: contiene los datos de inicio de sesión en un servicio, como un token que una herramienta guardó cuando iniciaste sesión. En cuanto se vacíe la papelera, tendrías que volver a iniciar sesión."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non sélectionné : il contient des identifiants de connexion à un service, comme un jeton qu’un outil a enregistré lorsque vous vous êtes connecté. Une fois la corbeille vidée, vous n’auriez qu’à vous reconnecter."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Non selezionato: contiene i dati di accesso a un servizio, come un token salvato da uno strumento quando hai eseguito il login. Una volta svuotato il Cestino, dovrai eseguire di nuovo il login."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未選択: ここには、ツールでログインしたときに保存されたトークンなど、サービスへのサインイン情報が含まれています。ゴミ箱を空にすると、サインインし直す必要があります。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "선택되지 않음: 사용자가 로그인할 때 도구가 저장한 토큰처럼 서비스의 로그인 정보가 들어 있습니다. 휴지통을 비우면 다시 로그인하기만 하면 됩니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Niet geselecteerd: dit bevat inloggegevens voor een dienst, zoals een token dat een tool heeft bewaard toen je inlogde. Zodra de prullenmand is geleegd, moet je opnieuw inloggen."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nie zaznaczono: zawiera zapamiętane logowanie do usługi, na przykład token zachowany przez narzędzie, gdy logujesz się za jego pomocą. Po opróżnieniu Kosza wystarczy zalogować się ponownie."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Não selecionado: este item contém os dados de acesso a um serviço, como um token que uma ferramenta salvou quando você iniciou sessão. Depois que o Lixo for esvaziado, você precisaria iniciar sessão de novo."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Neselectat: acest articol conține o autentificare la un serviciu, cum ar fi un token pe care un instrument l‑a salvat când ați făcut login. După golirea Coșului, ar trebui să faceți login din nou."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не выбрано: здесь хранятся данные для входа в сервис, например токен, который инструмент сохранил, когда Вы выполнили вход. После очистки Корзины Вам нужно будет лишь войти снова."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Inte markerad: den innehåller en inloggning på en tjänst, till exempel en token som ett verktyg sparade när du loggade in. När papperskorgen har tömts behöver du logga in igen."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Seçilmedi: bu, oturum açtığınızda bir aracın kaydettiği bir jeton gibi, bir hizmete ait oturum açma bilgisini içerir. Çöp Sepeti boşaltıldığında yeniden oturum açmanız gerekir."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Не вибрано: тут зберігаються дані для входу в сервіс, як-от токен, який інструмент записав, коли ви входили в цей сервіс. Коли Смітник буде очищено, вам доведеться лише увійти знову."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未选择:此处存有某项服务的登录信息,例如某个工具在你登录时保存的令牌。一旦清倒废纸篓,你只需重新登录即可。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "未選取:其中存有某項服務的登入資訊,例如某個工具在你登入時儲存的權杖。一旦清空「垃圾桶」,你就需要重新登入。"+ }+ }+ }+ },"Not selected: this holds message history that may exist only on this Mac. Once the Trash is emptied, it’s gone for good unless you have a backup." : {"localizations" : {"cs" : {diff --git a/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift b/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swiftindex fcf3f5ca..60f0caf1 100644--- a/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift+++ b/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift@@ -334,6 +334,7 @@ extension HoldBack {case .holdsMessageHistory: "holds message history that may exist only on this Mac"case .holdsPasswordsOrCodes: "holds passwords or sign-in codes that may exist only on this Mac"case .holdsVPNConnections: "holds VPN connections that may exist only on this Mac"+ case .holdsSignIns: "holds a sign-in to a service, such as a token a tool saved when you logged in"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"diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swiftindex 854d22f0..94431cdb 100644--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift@@ -2,9 +2,9 @@ import Foundationinternal import PeelPrivileged/// Where apps keep what may exist only on this Mac: local mail, message history, password vaults and sign-in codes,-/// VPN connections, and what the person made with an app, such as saved games, databases, and the app's own backups.-/// A folder at or inside one, or the app's folder that holds one, is shown and never selected for the person, who-/// can still select it.+/// VPN connections, what the person made with an app, such as saved games, databases, and the app's own backups, and+/// the sign-ins to services that tools save when the person logs in. A folder at or inside one, or the app's folder+/// that holds one, is shown and never selected for the person, who can still select it.enum KeptOnlyHere {static let places: [(folder: String, inside: String?, reason: HoldBack)] = [// Airmail's help, "Backup and restore Airmail for macOS".@@ -48,6 +48,24 @@ enum KeptOnlyHere {// OBS Studio keeps its profiles and scene collections in `obs-studio/basic` in its configuration folder// (`frontend/OBSApp.cpp`), and nowhere else.("Library/Application Support/obs-studio", "basic", .holdsWorkMadeWithTheApp),+ // Docker's `docker login`: with no credential store, the credentials go in `.docker/config.json`.+ (".docker", "config.json", .holdsSignIns),+ // Cargo's `cargo login`: the token is saved in `$CARGO_HOME/credentials.toml`, and `CARGO_HOME` is `.cargo`.+ (".cargo", "credentials.toml", .holdsSignIns),+ // The `.pypirc` specification (packaging.python.org): `$HOME/.pypirc`, with passwords and API tokens in it.+ (".pypirc", nil, .holdsSignIns),+ // RubyGems' `gem push`: the API key in `~/.gem/credentials` or `~/.local/share/gem/credentials`.+ (".gem", "credentials", .holdsSignIns),+ (".local/share/gem", "credentials", .holdsSignIns),+ // Composer's "Authentication for private packages": the global `auth.json` in `COMPOSER_HOME`, which its+ // command-line reference puts at `~/.composer` on macOS.+ (".composer", "auth.json", .holdsSignIns),+ // Google Cloud CLI's "Authorize the gcloud CLI": its credential files live in its configuration directory.+ (".config/gcloud", nil, .holdsSignIns),+ // Azure CLI's "MSAL-based Azure CLI": its token cache is kept as plain files on macOS, in `~/.azure`.+ (".azure", nil, .holdsSignIns),+ // Terraform's `terraform login`: the token goes in plain text to `~/.terraform.d/credentials.tfrc.json`.+ (".terraform.d", "credentials.tfrc.json", .holdsSignIns),]static func reason(for path: String, home: String) -> HoldBack? {diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swiftindex 52a75bcb..efd13e3a 100644--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swift+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swift@@ -84,6 +84,8 @@ public enum HoldBack: String, Sendable, Hashable {case holdsPasswordsOrCodes/// VPN connections, with their keys and certificates, that may exist only on this Mac (`KeptOnlyHere`).case holdsVPNConnections+ /// A sign-in to a service a tool saved when the person logged in, such as a registry token (`KeptOnlyHere`).+ case holdsSignIns/// What the person made with the app, such as saved games, databases, or the app's own backups, that may exist/// only on this Mac (`KeptOnlyHere`).case holdsWorkMadeWithTheAppdiff --git a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swiftindex 2f79122b..a26e8761 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift@@ -26,6 +26,11 @@ struct KeptOnlyHereTests {("Library/Application Support/Example/Backups", .holdsWorkMadeWithTheApp),("Library/Application Support/obs-studio", .holdsWorkMadeWithTheApp),("Library/Application Support/obs-studio/basic/scenes/Untitled.json", .holdsWorkMadeWithTheApp),+ (".docker", .holdsSignIns), (".docker/config.json", .holdsSignIns),+ (".cargo/credentials.toml", .holdsSignIns), (".pypirc", .holdsSignIns),+ (".gem/credentials", .holdsSignIns), (".local/share/gem/credentials", .holdsSignIns),+ (".composer/auth.json", .holdsSignIns), (".config/gcloud/credentials.db", .holdsSignIns),+ (".azure/msal_token_cache.json", .holdsSignIns), (".terraform.d/credentials.tfrc.json", .holdsSignIns),]for (path, reason) in held {#expect(KeptOnlyHere.reason(for: "\(home)/\(path)", home: home) == reason, "\(path)")@@ -41,6 +46,7 @@ struct KeptOnlyHereTests {"Library/Group Containers/group.net.whatsapp.family","Library/Application Support/Steam Link", "Library/Caches/Postgres", "Library/Application Support/Backupify","Library/Application Support/obs-studio/logs",+ ".docker/contexts", ".cargo/registry", ".config", ".local/share", ".terraform.d/plugins",]for path in free {#expect(KeptOnlyHere.reason(for: "\(home)/\(path)", home: home) == nil, "\(path)")diff --git a/Peel/Views/Presentation.swift b/Peel/Views/Presentation.swiftindex 4e7e860c..a49b08e0 100644--- a/Peel/Views/Presentation.swift+++ b/Peel/Views/Presentation.swift@@ -309,6 +309,8 @@ extension HoldBack {"Not selected: this holds passwords or sign-in codes that may exist only on this Mac. Once the Trash is emptied, they’re gone for good unless you have a backup."case .holdsVPNConnections:"Not selected: this holds VPN connections, with their keys and certificates, that may exist only on this Mac. Once the Trash is emptied, they’re gone for good unless you have a backup."+ case .holdsSignIns:+ "Not selected: this holds a sign-in to a service, such as a token a tool saved when you logged in. Once the Trash is emptied, you’d sign in again."case .holdsWorkMadeWithTheApp:"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:diff --git a/SAFETY.md b/SAFETY.mdindex 4c682c72..ee8dcfc9 100644--- a/SAFETY.md+++ b/SAFETY.md@@ -370,8 +370,9 @@ 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`)inside.- What an app keeps that may exist only on this Mac: local mail, message history, a password manager's backups and an- authenticator's codes, VPN connections, a game's saves, a database, and a streaming app's scenes and profiles, each- where the app's own documentation or source says it keeps them, and anything named as an app's backups. When you+ authenticator's codes, VPN connections, a game's saves, a database, a streaming app's scenes and profiles, 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. When youuninstall Xcode, the simulators it made in your home folder are listed too, with the apps installed in them and theirdata, and never selected.- A copy Mail keeps of an attachment you opened, which you may have changed.