From f8702c6c679a927a43e8cdad74bd5be2988a6c0d Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sun, 8 Apr 2018 10:41:04 +0200 Subject: [PATCH] Make sure XDG_DATA_HOME is used, if set. --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 69f4b85..ee69fcd 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -DIRECTORY=${HOME}/.local/share/rofi/themes/ +xdg=${${XDG_DATA_HOME}:-${HOME}/.local/share} +DIRECTORY="${xdg}/rofi/themes/}" if [ ! -d "${DIRECTORY}" ] then