Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}")
Expand Down