[Mono-osx] El Capitan: App is terminated on double-click, but runs from terminal (open -a app)

creatorul creatorulcom at gmail.com
Sat Nov 14 10:45:33 UTC 2015


Since there is no fix yet you can use this temporary fix. After packing with
Macpack open the app folder and go to /Contents/MacOS and edit the last *if
else *from your launch script:

> MONO_PATH="/usr/bin/mono"
> 
> cd "$APP_PATH/Contents/Resources"
> 
> if [ "$X11_MODE" -eq "1" ]; then
> 	open-x11 "$APP_NAME"
> else
> 	if [ -f "/usr/local/bin/mono" ]; then MONO_PATH="/usr/local/bin/mono" ;
> fi
> 	"$MONO_PATH" "$ASSEMBLY"
> fi





--
View this message in context: http://mono.1490590.n4.nabble.com/El-Capitan-App-is-terminated-on-double-click-but-runs-from-terminal-open-a-app-tp4666888p4666972.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list