#!/bin/bash

exec_path="/usr/lib/drapes"
exec_asm="drapes.exe"

APP_EXE="$exec_path/$exec_asm"

if [ "x$1" = "x--debug" ]; then
  MONO_OPTIONS="--debug"
  echo "** Running drapes in Debug Mode **"
fi

exec -a drapes /usr/bin/mono $MONO_OPTIONS $APP_EXE "$@"
