#!/bin/sh

# This Bourne shell script for GNOME invokes photomolo 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 photomolo program
: ${PHOTOMOLO=real-photomolo}
set -eu
if [ -z "${DISPLAY:-}" ]
then exec "$PHOTOMOLO" "$@"
fi
exec "$PHOTOMOLO" -P 'zenity --progress --title="pHoToMoLo" --text="Generating thumbnail images"' "$@"
