#!/bin/sh
# Export RUNEXIFTOOL_OPT to pass options to exiftool, default -s2
# Export RUNEXIFTOOL_GEO to pass geometry to Xdialog, default 'auto'
tmpf=`mktemp -t "${0##*/}.XXXXX"`
Xdialog --title "${@##*/} - ExifTool" --no-cancel --fixed-font --tailbox "$tmpf" ${RUNEXIFTOOL_GEO:-0x0} &
exiftool ${RUNEXIFTOOL_OPT:--s2} "$@" >> "$tmpf"
sleep 1; rm -f "$tmpf"; true
