diff --git a/session/src/xmd-load-wallpaper b/session/src/xmd-load-wallpaper index 155c60b..5ebef03 100755 --- a/session/src/xmd-load-wallpaper +++ b/session/src/xmd-load-wallpaper @@ -25,6 +25,9 @@ if type "$configFilePath" > /dev/null; then color="black" while read -r line; do + line=`echo $line | sed s/\#.\*$//g` + [ -z "$line" ] && continue + IFS="=" read key value << EOF $line EOF @@ -32,7 +35,7 @@ EOF "mode") mode="$value";; "file") file="$value";; "color") color="$value";; - *) echo "$name: bad key $key in $configFilePath" >&2;; + *) echo "$name: bad key $key in $configFilePath" >&2;; esac done < "$configFilePath"