#!/bin/sh

# This Bourne shell script for GNOME invokes exifiron with a
# switch that displays a progress indicator using zenity.

# This script is in the public domain.  marko.makela (at) iki.fi, Jan 10, 2006.

# path to the real exifiron program
: ${EXIFIRON=real-exifiron}
set -eu
if [ -z "${DISPLAY:-}" ]
then exec "$EXIFIRON" "$@"
fi
exec "$EXIFIRON" -P 'zenity --progress --title="Exifiron" --text="Ironing JPEG Exif" --auto-close' "$@"
