From 1cdeba5b36068b74ca478df70c5a639acd98eeea Mon Sep 17 00:00:00 2001 From: c4llv07e <38111072+c4llv07e@users.noreply.github.com> Date: Fri, 1 Sep 2023 15:30:04 +0000 Subject: [PATCH] fix XDG variable name Co-authored-by: arza --- tg/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tg/config.py b/tg/config.py index c84d461..e894f1f 100644 --- a/tg/config.py +++ b/tg/config.py @@ -16,7 +16,7 @@ def expand_path(path): CONFIG_HOME = expand_path(os.getenv("XDG_CONFIG_HOME", "~/.config")) CACHE_HOME = expand_path(os.getenv("XDG_CACHE_HOME", "~/.cache")) -DATA_HOME = expand_path(os.getenv("XD_GDATA_HOME", "~/.local/share")) +DATA_HOME = expand_path(os.getenv("XDG_DATA_HOME", "~/.local/share")) DOWNLOAD_DIR = expand_path(os.getenv("XDG_DOWNLOAD_DIR", "~/Downloads")) CONFIG_DIR = os.path.join(CONFIG_HOME, "tg/")