diff --git a/__init__.py b/__init__.py index d62c39a..363518c 100644 --- a/__init__.py +++ b/__init__.py @@ -163,7 +163,10 @@ def __init__(self): self.firefox_data_dir = Path.home() / "Library" / "Application Support" / "Firefox" self.firefox_icon_factory = lambda: Icon.fileType("/Applications/Firefox.app") case "Linux": - self.firefox_data_dir = Path.home() / ".mozilla" / "firefox" + # Try XDG-compliant location first, fallback to legacy path + xdg_path = Path.home() / ".config" / "mozilla" / "firefox" + legacy_path = Path.home() / ".mozilla" / "firefox" + self.firefox_data_dir = xdg_path if xdg_path.exists() else legacy_path self.firefox_icon_factory = lambda: Icon.theme("firefox") case _: raise NotImplementedError(f"Unsupported platform: {platform.system()}")