fix MD3 model entities crash on OS X (by renaming a class; apparently something weird...
[xonotic/netradiant.git] / setup / data / osx / NetRadiant.app / Contents / MacOS / netradiant.sh
index 4cb8749f5a5471e8a4ecff35bc6a3122d979f915..389ac04a21ca0392bca4e00d9686f9025b628f51 100755 (executable)
@@ -6,5 +6,9 @@ MY_DIRECTORY="${MY_DIRECTORY%/*}" # cut off Contents
 
 #export DYLD_LIBRARY_PATH="$MY_DIRECTORY/Contents/MacOS"
 
-cd "$MY_DIRECTORY/Contents/MacOS/NetRadiant/install"
-exec /usr/bin/open-x11 ./radiant.ppc
+cd "$MY_DIRECTORY/Contents/MacOS/install"
+if [ -x /usr/bin/open-x11 ]; then
+       exec /usr/bin/open-x11 ./radiant.ppc
+else
+       exec ./radiant.ppc
+fi