fi
# Change the background if available.
-if test -f "$HOME/.background" && test -n $set_background; then
+if test -f "$HOME/.background" && test -n "$set_background"; then
if test -x /usr/bin/hsetroot; then
hsetroot -full "$HOME/.background"
elif test -x /usr/bin/feh; then
feh --bg-scale "$HOME/.background"
+ # Remove the unnecessary ~/.fehbg file created by `feh`. I don't want
+ # to restore the background, I just run `feh` on each startx run.
+ # --no-fehbg is only available in recent feh releases.
+ rm -f "$HOME/.fehbg"
fi
fi