From c7faa1f61f1ede1fd4080b4f25f44153573c9fae Mon Sep 17 00:00:00 2001 From: Nitroretro Date: Tue, 17 Dec 2019 20:01:37 +0200 Subject: calcurse-vdirsyncer: use $XDG_DATA_HOME Signed-off-by: Lukas Fleischer --- contrib/vdir/calcurse-vdirsyncer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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="" -- cgit v1.2.3-70-g09d2