From 40956ae8f243aa9dc12fd136ea2438ee2248ee93 Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Fri, 23 Feb 2018 04:27:23 +0530 Subject: [PATCH] Use xdg-open --- imagecap | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/imagecap b/imagecap index 6f2b86b..a5a8f12 100755 --- a/imagecap +++ b/imagecap @@ -22,13 +22,6 @@ # www.agnibho.com SELF="$(realpath "$0")"; -if [ "$VISUAL" ];then - EDIT="$VISUAL"; -elif [ "$EDITOR" ];then - EDIT="$EDITOR"; -else - EDIT="vi"; -fi ARG="$(echo $1 | sed "s/^file:\/\///g")"; DIR="$(dirname "$ARG")"; if [ -n "$ARG" ];then @@ -39,7 +32,7 @@ function update(){ TEMP=$(mktemp); exiftool -S -s -b -comment "$1">$TEMP; ls -l $TEMP; - $EDIT $TEMP; + xdg-open $TEMP; exiftool -overwrite_original_in_place "-comment<=$TEMP" "$1"; rm $TEMP; } -- 2.39.5