Fix: don't call imv-msg if we're not using imv
Only call imv-msg to update the image if the image viewer is imv, not sxiv.
This commit is contained in:
parent
9258513fa9
commit
f9e929387e
2
kunst
2
kunst
|
@ -250,8 +250,10 @@ main() {
|
||||||
if [ ! $SILENT ];then
|
if [ ! $SILENT ];then
|
||||||
echo "kunst: received event from mpd"
|
echo "kunst: received event from mpd"
|
||||||
fi
|
fi
|
||||||
|
if [ "$VIEWER" = 'imv' ]; then
|
||||||
imv-msg "$(cat /tmp/kunst.pid)" close all
|
imv-msg "$(cat /tmp/kunst.pid)" close all
|
||||||
imv-msg "$(cat /tmp/kunst.pid)" open "$COVER"
|
imv-msg "$(cat /tmp/kunst.pid)" open "$COVER"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue