From ada0d98bde810d356d8272b476bc080fa37104f5 Mon Sep 17 00:00:00 2001 From: Nitroretro Date: Tue, 4 Feb 2020 16:17:59 +0200 Subject: caldav: Fix XDG_CONFIG_HOME not defaulting to ~/.config Signed-off-by: Lukas Fleischer --- contrib/caldav/calcurse-caldav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py index ec8f8fb..beea376 100755 --- a/contrib/caldav/calcurse-caldav.py +++ b/contrib/caldav/calcurse-caldav.py @@ -527,7 +527,7 @@ if os.path.isdir(os.path.expanduser("~/.calcurse")): oauth_file = os.path.expanduser("~/.calcurse/caldav/oauth2_cred") else: calcurse_data = os.getenv("XDG_DATA_HOME", os.path.expanduser("~/.local/share")) + "/calcurse" - calcurse_config = os.getenv("XDG_CONFIG_HOME", os.path.expanduser("~/.local/share")) + "/calcurse" + calcurse_config = os.getenv("XDG_CONFIG_HOME", os.path.expanduser("~/.config")) + "/calcurse" configfn = os.path.expanduser(calcurse_config + "/caldav/config") lockfn = os.path.expanduser(calcurse_data + "/caldav/lock") -- cgit v1.2.3-70-g09d2