]> Softwares of Agnibho - imagecap.git/commitdiff
Use xdg-open
authorAgnibho Mondal <mondal@agnibho.com>
Thu, 22 Feb 2018 22:57:23 +0000 (04:27 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Thu, 22 Feb 2018 22:57:23 +0000 (04:27 +0530)
imagecap

index 6f2b86b3b947ca1ce60baaafd7e51c04bdef0146..a5a8f1231ef63d63907b85a0b902a9e99e88c00d 100755 (executable)
--- a/imagecap
+++ b/imagecap
 # 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;
 }