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.

Keep more browsers' saved passwords and bookmarks unselected

Țugui Dragoșb68f47135368
diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift
index f2f95d6c..514e7011 100644
--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift
@@ -70,6 +70,21 @@ enum KeptOnlyHere {
("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),
+ // Microsoft's "Native messaging" names Edge's folder for each channel and Vivaldi's team names Vivaldi's;
+ // Thorium's, Comet's, Arc's and Dia's come from their casks. Yandex Browser's help, "Profile for settings and
+ // data storing", keeps the profiles and their site logins in `YandexBrowser`.
+ ("Library/Application Support/Microsoft Edge", "Default", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Microsoft Edge Beta", "Default", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Microsoft Edge Dev", "Default", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Microsoft Edge Canary", "Default", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Vivaldi", "Default", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Thorium", "Default", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Comet", "Default", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Yandex", "YandexBrowser", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Arc", nil, .holdsPasswordsOrCodes),
+ ("Library/Application Support/Dia", nil, .holdsPasswordsOrCodes),
+ // Kagi's "Technical Information" for Orion: its profiles and bookmarks are in its folder.
+ ("Library/Application Support/Orion", nil, .holdsWorkMadeWithTheApp),
// 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.swift
index 108514ad..28ff5a38 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift
@@ -45,6 +45,19 @@ struct KeptOnlyHereTests {
("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/Microsoft Edge", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Microsoft Edge/Default/Login Data", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Microsoft Edge Canary/Default", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Vivaldi/Default/Login Data", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Thorium", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Comet/Default/Login Data", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Yandex", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Yandex/YandexBrowser/Default/Ya Passman Data", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Arc/User Data/Default/Login Data", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Arc/StorableSidebar.json", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Dia", .holdsPasswordsOrCodes),
+ ("Library/Application Support/Orion/Defaults/favourites.plist", .holdsWorkMadeWithTheApp),
+ ("Library/Application Support/Orion/profiles", .holdsWorkMadeWithTheApp),
("Library/Application Support/Tunnelblick/Configurations/work.tblk", .holdsVPNConnections),
("Library/Application Support/Viscosity", .holdsVPNConnections),
("Library/Application Support/Steam", .holdsWorkMadeWithTheApp),
@@ -104,6 +117,10 @@ struct KeptOnlyHereTests {
@Test func leavesWhatSitsBesideOrAroundThem() {
let free = [
"Library/Application Support", "Library/Group Containers", "Library", "Library/Caches/Signal",
+ "Library/Application Support/Microsoft Edge/NativeMessagingHosts/org.example.host.json",
+ "Library/Application Support/Microsoft Edge Beta/NativeMessagingHosts/org.example.host.json",
+ "Library/Application Support/Microsoft", "Library/Application Support/Microsoft/EdgeUpdater",
+ "Library/Application Support/Yandex/YandexDisk", "Library/Application Support/Vivaldi/NativeMessagingHosts",
"Library/Application Support/Signal Beta", "Library/Thunderbird/Crash Reports",
"Library/Group Containers/group.strongbox.mac.mcguill/Library/Caches",
"Library/Application Support/Tunnelblick/Logs", "Library/Logs/Viscosity",