fix(qmd): honor XDG_CACHE_HOME for the setup-owned model files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Julian lechnerandClaude Opus 5.5 committed 2026-10-08 12:41:42 +02:00
1 parent 7ebd61f35b
commit 233152ff54
3 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ class Setup:
self.base = self.home / '.my-ai-configuration'
self.state_path = self.base / 'qmd.json'
self.scripts = self.base / 'qmd'
self.models = self.home / '.cache' / 'qmd' / 'models'
self.models = Path(os.environ.get('XDG_CACHE_HOME') or self.home / '.cache') / 'qmd' / 'models'
def say(self, text):
if not self.summary: