From d592392a93cc7fd724a07706dab8573b668f62ba Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Thu, 1 Sep 2022 14:22:07 -0400 Subject: use XDG_CACHE_HOME correctly --- coupons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coupons.py b/coupons.py index 061f998..1e4b964 100755 --- a/coupons.py +++ b/coupons.py @@ -69,7 +69,7 @@ def get_cached_name(store, date = None): """ USE_CACHE = True store = store.lower() - cache_dir = os.environ.get("XDG_CACHE_DIR") # defauls to ~/.cache + cache_dir = os.environ.get("XDG_CACHE_HOME") # defaults to ~/.cache if "" == cache_dir or cache_dir is None: cache_dir = os.path.join(os.environ.get("HOME"),".cache") # use an app-specific dir underneath it -- cgit