From 9361fa3305fccb3bc8092300f49bf2980334a317 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sat, 7 Sep 2024 19:29:23 -0400 Subject: [PATCH] Source a user's xdg base dir preferences --- lug-helper.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lug-helper.sh b/lug-helper.sh index 41a65c7..f20fd77 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -97,6 +97,10 @@ game_conf="gamedir.conf" firstrun_conf="firstrun.conf" # Use XDG base directories if defined +if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs" ]; then + # Source the user's xdg directories + source "${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs" +fi conf_dir="${XDG_CONFIG_HOME:-$HOME/.config}" data_dir="${XDG_DATA_HOME:-$HOME/.local/share}"