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.

Leave Waterfox's, Zen's and Floorp's profiles unselected, as Firefox's

Țugui Dragoșf5171d73f580
diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift
index 77baf82e..81ea5ee7 100644
--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift
@@ -41,6 +41,13 @@ enum KeptOnlyHere {
// 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),
+ // Browsers built on Firefox keep the same profiles and save passwords as it does: Waterfox's
+ // `moz.configure` and Zen's `moz-configure.patch` name the folder (`MOZ_APP_PROFILE`), Zen's "Managing
+ // Firefox Profiles" says `logins.json` holds the saved passwords, and Floorp keeps them under its own name.
+ // LibreWolf, Tor Browser and Mullvad Browser save none unless the person turns it on, so they aren't here.
+ ("Library/Application Support/Waterfox", "Profiles", .holdsPasswordsOrCodes),
+ ("Library/Application Support/zen", "Profiles", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Floorp", "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
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift
index 1dab3351..27fe89a0 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift
@@ -22,6 +22,9 @@ struct KeptOnlyHereTests {
("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/Waterfox", .holdsPasswordsOrCodes),
+ ("Library/Application Support/zen/Profiles/pzrcsk7e.Default (release)/logins.json", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Floorp/Profiles/y5yiweov.default-default/key4.db", .holdsPasswordsOrCodes),
("Library/Application Support/Google/Chrome", .holdsPasswordsOrCodes),
("Library/Application Support/Google/Chrome/Default/Login Data", .holdsPasswordsOrCodes),
("Library/Application Support/Google/Chrome Canary", .holdsPasswordsOrCodes),
@@ -106,6 +109,7 @@ struct KeptOnlyHereTests {
"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/Caches/Waterfox/Profiles/b1p8ayxl.default-release", "Library/Caches/zen", "Library/Caches/Floorp",
"Library/Application Support/Google/GoogleUpdater", "Library/Application Support/BraveSoftware",
"Library/Containers/com.culturedcode.ThingsMac", "Library/Caches/com.culturedcode.ThingsMac",
]