aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNitroretro <nitroretro@protonmail.com>2019-12-17 20:01:37 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2019-12-23 13:16:39 -0500
commitc7faa1f61f1ede1fd4080b4f25f44153573c9fae (patch)
tree88db87dd0468ad914331ce9c33f679334d0bdb6e
parentd85691ebee26891547c208e3e2e34e67b07562d7 (diff)
downloadcalcurse-c7faa1f61f1ede1fd4080b4f25f44153573c9fae.tar.gz
calcurse-c7faa1f61f1ede1fd4080b4f25f44153573c9fae.zip
calcurse-vdirsyncer: use $XDG_DATA_HOME
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rwxr-xr-xcontrib/vdir/calcurse-vdirsyncer2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vdir/calcurse-vdirsyncer b/contrib/vdir/calcurse-vdirsyncer
index c5371b5..2ac849a 100755
--- a/contrib/vdir/calcurse-vdirsyncer
+++ b/contrib/vdir/calcurse-vdirsyncer
@@ -34,7 +34,7 @@ if [ "$#" -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
usage
fi
-DATADIR="$HOME/.calcurse"
+[ -d "$HOME/.calcurse" ] && DATADIR="$HOME/.calcurse" || DATADIR="${XDG_DATA_HOME:-$HOME/.local/share}/calcurse"
VERBOSE=""
FORCE=""