summaryrefslogtreecommitdiff
path: root/src/libretools.conf
diff options
context:
space:
mode:
Diffstat (limited to 'src/libretools.conf')
-rw-r--r--src/libretools.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libretools.conf b/src/libretools.conf
index 20c7d90..91ec452 100644
--- a/src/libretools.conf
+++ b/src/libretools.conf
@@ -108,8 +108,8 @@ TORUPATH=/var/lib/libretools/toru
################################################################################
LIBREUSER="${SUDO_USER:-$USER}"
-LIBREHOME="$(eval echo ~$SUDO_USER)"
-if [[ -z $XDG_CONFIG_HOME ]]; then
+LIBREHOME="$(eval echo ~$LIBREUSER)"
+if [[ -z ${XDG_CONFIG_HOME:-} ]]; then
export XDG_CONFIG_HOME="${LIBREHOME}/.config"
fi
if [[ -e "$XDG_CONFIG_HOME/libretools/libretools.conf" ]]; then