mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-11-10 23:17:49 +00:00
Source a user's xdg base dir preferences
This commit is contained in:
parent
c76f77c525
commit
9361fa3305
@ -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}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user