Bogus handling of Xresources dir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lightdm (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: lightdm
Hi
/etc/lightdm/
for file in "/etc/X11/
if [ -f "$file" ]; then
echo "Loading resource: $file"
xrdb -nocpp -merge "$file"
fi
done
but here /etc/X11/Xresources is a directory, which means that the resources in there don't get applied.
Changing this to:
for file in "/etc/X11/
if [ -f "$file" ]; then
echo "Loading resource: $file"
xrdb -nocpp -merge "$file"
elif [ -d "$file" ]; then
for i in `ls "$file"`; do
if [ -r "$i" ] && expr "$i" : '^[[:alnum:]_-]\+$' > /dev/null; then
fi
done
fi
done
fixes it
Cheers
The provided snippet was incorrect, but this should work:
# Load resources Xresources" "$HOME/ .Xresources" ; do
echo "Loading resource: $file/$i"
xrdb -nocpp -merge "$file/$i"
for file in "/etc/X11/
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
fi
done
fi
done