summaryrefslogtreecommitdiffstats
path: root/contrib/vdir
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/vdir')
-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=""