From d3ce42b126b020782a5e960232b90bd6bcf22453 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 21 Jun 2026 20:31:00 +1000 Subject: [PATCH] fix: delete old firefox native host on migration --- src/caelestia/utils/dots/legacy.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/caelestia/utils/dots/legacy.py b/src/caelestia/utils/dots/legacy.py index b706d14..a9d1608 100644 --- a/src/caelestia/utils/dots/legacy.py +++ b/src/caelestia/utils/dots/legacy.py @@ -91,4 +91,10 @@ def legacy_to_delete(legacy_dir: Path | None) -> list[Path]: if not legacy_dir: 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, + ]