Severity: π’ Low (Linux ergonomics)
renderer.py:99β102:
allowed_roots = [
_Path.home() / ".perseus",
_Path.home() / ".cache",
]
XDG-compliant Linux users with $XDG_CACHE_HOME set to a non-default location (e.g., ~/.local/cache) will have their cache_dir config rejected and fall back to ~/.perseus/cache.
Suggested fix
import os
xdg = os.environ.get("XDG_CACHE_HOME")
if xdg:
allowed_roots.append(_Path(xdg).expanduser())
Acceptance criteria
- Test: setting
XDG_CACHE_HOME=/tmp/xdg and cache_dir=/tmp/xdg/perseus resolves to the configured path.
Severity: π’ Low (Linux ergonomics)
renderer.py:99β102:XDG-compliant Linux users with
$XDG_CACHE_HOMEset to a non-default location (e.g.,~/.local/cache) will have theircache_dirconfig rejected and fall back to~/.perseus/cache.Suggested fix
Acceptance criteria
XDG_CACHE_HOME=/tmp/xdgandcache_dir=/tmp/xdg/perseusresolves to the configured path.