From 558dfa65cc1b976628b04485eb81525929f4e6c1 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Sat, 9 Nov 2024 13:45:43 +0100 Subject: [PATCH] Respect user specified config directory. Fixes #141 --- tidal_dl_ng/helper/path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tidal_dl_ng/helper/path.py b/tidal_dl_ng/helper/path.py index bc1fb6d..c00ddfd 100644 --- a/tidal_dl_ng/helper/path.py +++ b/tidal_dl_ng/helper/path.py @@ -26,7 +26,7 @@ def path_home() -> str: def path_config_base() -> str: - path_config: str = ".config" + path_config: str = os.environ.get("XDG_CONFIG_HOME", ".config") path_base: str = os.path.join(path_home(), path_config, __name_display__) return path_base