From edeb2500834b25a1fe8dade63e2b2abcb1a4f038 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Thu, 15 Jul 2021 09:12:06 +0200 Subject: [PATCH] Specify other default values This is usefull for cron jobs that would manage sxmo like screenlock by example. Signed-off-by: Stacy Harper Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/core/sxmo_common.sh b/scripts/core/sxmo_common.sh index 0a07e90..d2e10bd 100644 --- a/scripts/core/sxmo_common.sh +++ b/scripts/core/sxmo_common.sh @@ -12,13 +12,13 @@ # shellcheck disable=SC2034 export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-$HOME/.local/run}" # shellcheck disable=SC2034 -export NOTIFDIR="$XDG_DATA_HOME"/sxmo/notifications +export NOTIFDIR="${XDG_DATA_HOME:-$HOME/.local/share}"/sxmo/notifications # shellcheck disable=SC2034 -export CACHEDIR="$XDG_CACHE_HOME"/sxmo +export CACHEDIR="${XDG_CACHE_HOME:-$HOME/.cache}"/sxmo # shellcheck disable=SC2034 -export LOGDIR="$XDG_DATA_HOME"/sxmo/modem +export LOGDIR="${XDG_DATA_HOME:-$HOME/.local/share}"/sxmo/modem # shellcheck disable=SC2034 -export CONTACTFILE="$XDG_CONFIG_HOME/sxmo/contacts.tsv" +export CONTACTFILE="${XDG_CONFIG_HOME:-$HOME/.config}/sxmo/contacts.tsv" # shellcheck disable=SC2034 export MODEMSTATEFILE="$XDG_RUNTIME_DIR/sxmo.modem.state" # shellcheck disable=SC2034