xrdbupdate: Respect XDG spec

This commit is contained in:
Salt 2018-08-24 17:14:33 -05:00
parent 49daa6098d
commit d2ab57a58a

View File

@ -4,7 +4,7 @@ if [ -r ~/.Xresources ]; then
xrdb ~/.Xresources
printf " [INFO] Loading .Xresources\n"
fi
for file in ~/.xrdb/*.xresources; do
for file in "${XDG_CONFIG_HOME:-$HOME/.config}"/xrdb/*.xresources; do
if ! [ -r "$file" ]; then
printf " [ERROR] Could not read .xresources file $file\n" 1>&2
else