From e1f33d2a47bed29cc6116cb92080d0f4ee8fdd52 Mon Sep 17 00:00:00 2001
From: Keivan Beigi <me@keivan.io>
Date: Mon, 1 Dec 2014 16:59:16 -0800
Subject: [PATCH] removed process renaming for osx

---
 osx-app/Sonarr.app/MacOS/sonarr.sh | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/osx-app/Sonarr.app/MacOS/sonarr.sh b/osx-app/Sonarr.app/MacOS/sonarr.sh
index 4fcf9e592..d2055293a 100644
--- a/osx-app/Sonarr.app/MacOS/sonarr.sh
+++ b/osx-app/Sonarr.app/MacOS/sonarr.sh
@@ -5,7 +5,6 @@ DIR=$(cd "$(dirname "$0")"; pwd)
  
 #change these values to match your app
 EXE_PATH="$DIR\nzbdrone.exe"
-PROCESS_NAME=appname
 APPNAME="Sonarr"
  
 #set up environment
@@ -18,7 +17,7 @@ REQUIRED_MAJOR=3
 REQUIRED_MINOR=10
  
 VERSION_TITLE="Cannot launch $APPNAME"
-VERSION_MSG="$APPNAME requires Mono Runtime Environment (MRE) version $REQUIRED_MAJOR.$REQUIRED_MINOR or later."
+VERSION_MSG="$APPNAME requires Mono Runtime Environment (MRE) $REQUIRED_MAJOR.$REQUIRED_MINOR or later."
 DOWNLOAD_URL="http://www.mono-project.com/download/#download-mac"
  
 MONO_VERSION="$(mono --version | grep 'Mono JIT compiler version ' |  cut -f5 -d\ )"
@@ -36,13 +35,7 @@ then
     exit 1
 fi
  
-#get an exec command that will work on the current OS version
-OSX_VERSION=$(uname -r | cut -f1 -d.)
-if [ $OSX_VERSION -lt 9 ]; then  # If OSX version is 10.4
-    MONO_EXEC="exec mono --debug"
-else
-    MONO_EXEC="exec -a \"$PROCESS_NAME\" mono --debug"
-fi
+MONO_EXEC="exec mono --debug"
  
 #run app using mono
 $MONO_EXEC --debug "$EXE_PATH"
\ No newline at end of file