image: Fix bug with getting wallpaper from feh.

This commit is contained in:
dylan araps 2017-10-10 08:44:09 +11:00
parent f9d881e905
commit b763c31ad7

View file

@ -2492,7 +2492,7 @@ get_wallpaper() {
*) *)
if type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then if type -p feh >/dev/null && [[ -f "${HOME}/.fehbg" ]]; then
image="$(< "${HOME}/.fehbg")" image="$(awk '{print $NF}' "${HOME}/.fehbg")"
image="${image#*\'}" image="${image#*\'}"
image="${image%\'*}" image="${image%\'*}"