From 3f460e5b46f4004141e51485cf54292d82de0c2c Mon Sep 17 00:00:00 2001 From: sam tunder Date: Fri, 5 Jul 2024 18:41:39 +0200 Subject: [PATCH] add xdg_base_dir support placing theme in appropiate folder. --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index 79eea796..cc606cc5 100755 --- a/install.sh +++ b/install.sh @@ -17,6 +17,8 @@ window= # Destination directory if [ "$UID" -eq "$ROOT_UID" ]; then DEST_DIR="/usr/share/themes" +elif [ -n "$XDG_DATA_HOME" ]; then + DEST_DIR="$XDG_DATA_HOME/themes" else DEST_DIR="$HOME/.themes" fi