use xdg variables and parallelize some processes

This commit is contained in:
2025-10-08 13:15:54 +02:00
parent e8ed114bc2
commit c7ee2e997f
5 changed files with 28 additions and 19 deletions

View File

@@ -6,7 +6,7 @@ if [ ! "${LOG_LOADED:-}" ]; then
ERR="\033[38;5;196m"
INFO="\033[38;5;75m"
OFF="\033[m"
LOGDIR="$HOME/.local/state/$APP_NAME"
LOGDIR="${XDG_STATE_HOME:-"$HOME/.local/state"}/$APP_NAME"
[ -d "$LOGDIR" ] || mkdir -p "$LOGDIR"
LOGFILE="$LOGDIR/log"
export ERR INFO OFF LOGFILE