mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-11-14 07:35:42 +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"
|
firstrun_conf="firstrun.conf"
|
||||||
|
|
||||||
# Use XDG base directories if defined
|
# 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}"
|
conf_dir="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||||
data_dir="${XDG_DATA_HOME:-$HOME/.local/share}"
|
data_dir="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user