From f9e929387e6b25e84a2e612303216f99787cc059 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Fri, 28 Feb 2020 19:06:46 -0800 Subject: [PATCH] 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. --- kunst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kunst b/kunst index a8e63d4..43965e6 100755 --- a/kunst +++ b/kunst @@ -250,8 +250,10 @@ main() { if [ ! $SILENT ];then echo "kunst: received event from mpd" fi - imv-msg "$(cat /tmp/kunst.pid)" close all - imv-msg "$(cat /tmp/kunst.pid)" open "$COVER" + if [ "$VIEWER" = 'imv' ]; then + imv-msg "$(cat /tmp/kunst.pid)" close all + imv-msg "$(cat /tmp/kunst.pid)" open "$COVER" + fi done }