Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

fix: check XDG_CONFIG_HOME for Firefox profiles on Linux

23241a6749ed42d8aa2644
diff --git a/skills/last30days/scripts/lib/cookie_extract.py b/skills/last30days/scripts/lib/cookie_extract.py
index 23b24f34..626d80a1 100644
--- a/skills/last30days/scripts/lib/cookie_extract.py
+++ b/skills/last30days/scripts/lib/cookie_extract.py
@@ -69,7 +69,16 @@ def _get_firefox_profiles_dir() -> Optional[Path]:
if system == "Darwin":
path = Path.home() / "Library" / "Application Support" / "Firefox"
elif system == "Linux":
+ # Default location for most distros
path = Path.home() / ".mozilla" / "firefox"
+ if path.is_dir():
+ return path
+ # Some distros (e.g. Fedora) honour $XDG_CONFIG_HOME
+ xdg_config = os.environ.get("XDG_CONFIG_HOME")
+ if xdg_config:
+ path = Path(xdg_config) / "mozilla" / "firefox"
+ else:
+ path = Path.home() / ".config" / "mozilla" / "firefox"
else:
# Windows: %APPDATA%\Mozilla\Firefox — best-effort
appdata = Path.home() / "AppData" / "Roaming" / "Mozilla" / "Firefox"