mirror of
https://github.com/daijro/camoufox.git
synced 2026-09-05 08:00:36 +00:00
Re-using get_path for correct placement of the file(s) when XDG_CACHE_HOME is set
This commit is contained in:
committed by
Jake Writer
parent
a8ad6285d6
commit
150328cc01
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user