#!/bin/sh

# This Bourne shell script for GNOME invokes jpegnail 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 jpegnail program
: ${JPEGNAIL=real-jpegnail}
set -eu
if [ -z "${DISPLAY:-}" ]
then exec "$JPEGNAIL" "$@"
fi
exec "$JPEGNAIL" -P 'zenity --progress --title="Jpegnail" --text="Processing embedded JPEG thumbnails" --auto-close' "$@"
