Log into XDG_RUNTIME_DIR

This commit is contained in:
2024-04-14 02:14:12 +02:00
parent d0b067e3d4
commit 3fdd991cef
5 changed files with 3 additions and 7 deletions

View File

@@ -1,8 +1,6 @@
#!/bin/bash
export LOGFILE="$LOGDIR/xinitrc.log"
mkdir -p "${LOGDIR}/i3"
export LOGFILE="$XDG_RUNTIME_DIR/xinitrc.log"
log() {
echo "[$(date +%FT%T)] $*" >> "$LOGFILE"