#!/bin/sh

################################################################################
#                                                                              #
# A system-wide starup script. This typically goes into /usr/bin/diva . We set #
# some paths here and we launch the main application. This script it being     #
# filled-in by the SCons build script. DIVA_PLUGINS and DIVA_LOCALE env vars   #
# are actually used by the program to locate stuff.                            #
#                                                                              #
################################################################################

LIB_DIR="/usr/lib"
SHARE_DIR="/usr/share"

export DIVA_PLUGINS="$LIB_DIR/diva/plugins/"
export DIVA_LOCALE="$SHARE_DIR/locale/"
export MONO_PATH="$MONO_PATH:$LIB_DIR/diva"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_DIR/diva:$DIVA_PLUGINS:"

exec mono "$LIB_DIR/diva/diva.exe" "$@"
