From 150328cc01b9a574b6062ebae4873dd011d37335 Mon Sep 17 00:00:00 2001 From: Andrei Zhemaituk Date: Fri, 17 Jul 2026 13:11:32 +0200 Subject: [PATCH] Re-using get_path for correct placement of the file(s) when XDG_CACHE_HOME is set --- pythonlib/camoufox/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonlib/camoufox/utils.py b/pythonlib/camoufox/utils.py index 44e93f8..8542b02 100644 --- a/pythonlib/camoufox/utils.py +++ b/pythonlib/camoufox/utils.py @@ -69,7 +69,7 @@ def _generate_fontconfig(fontconfig_path: str) -> str: f'{fonts_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]