fix: delete old firefox native host on migration

This commit is contained in:
2 * r + 2 * t
2026-06-21 20:31:00 +10:00
parent abf0bc74ba
commit d3ce42b126
+7 -1
View File
@@ -91,4 +91,10 @@ def legacy_to_delete(legacy_dir: Path | None) -> list[Path]:
if not legacy_dir: if not legacy_dir:
return [] return []
return [*legacy_symlinks(legacy_dir), legacy_dir] non_syms = [Path.home() / ".mozilla/native-messaging-hosts/caelestiafox.json"]
return [
*legacy_symlinks(legacy_dir),
*(p for p in non_syms if p.exists()),
legacy_dir,
]