# Setup the environment for MWF if needed
if [ "$MWF_MODE" -eq "1" ]; then
- export MONO_MWF_USE_QUARTZ_BACKEND=1
+ export MONO_MWF_USE_CARBON_BACKEND=1
export GDIPLUS_NOX=1
fi
if [ "$X11_MODE" -eq "1" ]; then
open-x11 "$APP_NAME"
+
+# rcruzs00
+# El Capitan FIX: `which` wont work (system-integrity-protection)
+# elif: Keep compatibility with previous code
+elif [ -f /usr/local/bin/mono ]; then
+ DIR=$(cd "$(dirname "$0")"; pwd)
+ /usr/local/bin/mono $DIR/../Resources/"$ASSEMBLY"
+
else
if [ ! -d "./bin" ]; then mkdir bin ; fi
if [ -f "./bin/$APP_NAME" ]; then rm -f "./bin/$APP_NAME" ; fi