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: validate XDG_CONFIG_HOME is absolute; add CHANGELOG entry

23241a6749c3649f30f523
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 53f250d4..6ca6fdb2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Advisory Semgrep SAST scan runs on every push/PR as part of the Security workflow, catching source-level security bugs using Semgrep CE community rules ([#563](https://github.com/mvanhorn/last30days-skill/issues/563))
+### Fixed
+
+- Firefox profile detection on Linux now checks `$XDG_CONFIG_HOME/mozilla/firefox` (or its default `~/.config/mozilla/firefox`) in addition to `~/.mozilla/firefox`, fixing cookie extraction on distros that honour the XDG Base Directory Specification ([#667](https://github.com/mvanhorn/last30days-skill/issues/667))
+
## [3.8.1] - 2026-06-22
### Added
diff --git a/skills/last30days/scripts/lib/cookie_extract.py b/skills/last30days/scripts/lib/cookie_extract.py
index 626d80a1..74999409 100644
--- a/skills/last30days/scripts/lib/cookie_extract.py
+++ b/skills/last30days/scripts/lib/cookie_extract.py
@@ -75,7 +75,7 @@ def _get_firefox_profiles_dir() -> Optional[Path]:
return path
# Some distros (e.g. Fedora) honour $XDG_CONFIG_HOME
xdg_config = os.environ.get("XDG_CONFIG_HOME")
- if xdg_config:
+ if xdg_config and os.path.isabs(xdg_config):
path = Path(xdg_config) / "mozilla" / "firefox"
else:
path = Path.home() / ".config" / "mozilla" / "firefox"