#!/bin/bash

prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib
turtledir=

EXE_TO_RUN="$libdir/f-spot/f-spot.exe"

if test "x$turtledir" != "x"; then
    export MONO_PATH=$turtledir/lib:$turtledir/gui:$MONO_PATH
fi

case "x--uninstalled" in ("x$1" | "x$2")
	echo "*** Running uninstalled f-spot ***"
	EXE_TO_RUN="./f-spot.exe"
	export MONO_PATH=../dbus-sharp:../dbus-sharp-glib:../google-sharp:../gnome-keyring-sharp:../FlickrNet:../libgphoto2-sharp:../semweb:$MONO_PATH


esac

case "x--debug" in ("x$1" | "x$2")
	MONO_OPTIONS="--debug"
	echo "*** Running F-Spot in Debug Mode ***"
esac

exec -a f-spot mono $MONO_OPTIONS $EXE_TO_RUN "$@"
