#!/bin/bash

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/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=../google-sharp:../gnome-keyring-sharp:../FlickrNet:../libgphoto2-sharp:../semweb:$MONO_PATH


esac

exec mono $MONO_OPTIONS /usr/lib/f-spot/f-spot.exe "$@"
