The provided snippet was incorrect, but this should work:
# Load resources
for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do
if [ -f "$file" ]; then
echo "Loading resource: $file"
xrdb -nocpp -merge "$file"
elif [ -d "$file" ]; then
for i in `ls "$file"`; do
if [ -r "$file/$i" ] && expr "$i" : '^[[:alnum:]_-]\+$' >
/dev/null; then
echo "Loading resource: $file/$i"
xrdb -nocpp -merge "$file/$i"
fi
done
fi
done
** Tags added: patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/800193
Title:
Bogus handling of Xresources dir
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/800193/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs