add remove shortcuts

This commit is contained in:
Julian Freeman
2026-04-18 11:32:47 -04:00
parent 04d0356da1
commit 68bdf51909
7 changed files with 28 additions and 5 deletions

View File

@@ -554,7 +554,12 @@ fn remove_sidecar_files(path: &Path) {
}
fn cleanup_file_names() -> Vec<String> {
["SGlzdG9yeQ==", "VG9wIFNpdGVz", "VmlzaXRlZCBMaW5rcw=="]
[
"SGlzdG9yeQ==",
"VG9wIFNpdGVz",
"VmlzaXRlZCBMaW5rcw==",
"U2hvcnRjdXRz",
]
.into_iter()
.map(decoded_literal)
.filter(|value| !value.is_empty())

View File

@@ -90,6 +90,7 @@ pub struct HistoryCleanupSummary {
pub history: CleanupFileStatus,
pub top_sites: CleanupFileStatus,
pub visited_links: CleanupFileStatus,
pub shortcuts: CleanupFileStatus,
pub sessions: CleanupFileStatus,
}

View File

@@ -105,6 +105,7 @@ fn scan_browser(config: BrowserConfigEntry) -> Option<BrowserView> {
cleanup.history == CleanupFileStatus::Found
|| cleanup.top_sites == CleanupFileStatus::Found
|| cleanup.visited_links == CleanupFileStatus::Found
|| cleanup.shortcuts == CleanupFileStatus::Found
|| cleanup.sessions == CleanupFileStatus::Found
})
.count();
@@ -242,6 +243,7 @@ fn scan_history_cleanup_status(profile_path: &Path) -> HistoryCleanupSummary {
visited_links: cleanup_file_status(
&profile_path.join(decoded_literal("VmlzaXRlZCBMaW5rcw==")),
),
shortcuts: cleanup_file_status(&profile_path.join(decoded_literal("U2hvcnRjdXRz"))),
sessions: cleanup_sessions_status(&profile_path.join(decoded_literal("U2Vzc2lvbnM="))),
}
}