Merge pull request #173 from shadow-absorber/xdg-base-dir

add xdg_base_dir support placing theme in appropiate folder.
This commit is contained in:
Vince 2024-07-08 12:41:20 +08:00 committed by GitHub
commit 6e823240b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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