#!@SHELL@
#
TANGO_HOME=@prefix@;		export TANGO_HOME

if [ ! $TANGO_HOST ] && [ -f @TANGO_RC_FILE@ ]; then
   . @TANGO_RC_FILE@
fi

#---------------------------------------------------------
#       Set the Class Path for Tango and AtkPanel usage
#---------------------------------------------------------
LIB_DIR=@prefix@/share/java;   export LIB_DIR


TANGO=$LIB_DIR/JTango.jar
TANGOATK=$LIB_DIR/ATKCore.jar:$LIB_DIR/ATKWidget.jar
ATKPANEL=$LIB_DIR/ATKPanel.jar

CLASSPATH=$ATKPANEL:$TANGOATK:$TANGO
export CLASSPATH
LOGBACK=${TANGO_LOGBACK:-@prefix@/share/tango/logback.xml}

#---------------------------------------------------------
#	Start the atkpanel process
#---------------------------------------------------------

@JAVA@ \
    -mx128m \
    -DTANGO_HOST=$TANGO_HOST \
    -Dlogback.configurationFile="$LOGBACK" \
    atkpanel.MainPanel \
    "$@"
