Re-using get_path for correct placement of the file(s) when XDG_CACHE_HOME is set

This commit is contained in:
Andrei Zhemaituk
2026-07-28 00:27:33 -06:00
committed by Jake Writer
parent a8ad6285d6
commit 150328cc01
+1 -1
View File
@@ -69,7 +69,7 @@ def _generate_fontconfig(fontconfig_path: str) -> str:
f'<dir>{fonts_dir}</dir>',
)
cache_dir = os.path.join(os.path.expanduser('~'), '.cache', 'camoufox', 'fontconfig')
cache_dir = get_path('fontconfig')
os.makedirs(cache_dir, exist_ok=True)
content_hash = hashlib.sha256(conf_content.encode()).hexdigest()[:12]