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

Bostjan Sodja Sodja.Bostjan at pieps.com
Mon Nov 16 06:37:59 UTC 2015


Thanks for temporary fix.
In the mean time I have for El Capitan hardcoded the mono path instead "which" command. 
And thanks for suggestion where the errors is in first place.

-----Original Message-----
From: mono-osx-bounces at lists.ximian.com [mailto:mono-osx-bounces at lists.ximian.com] On Behalf Of creatorul
Sent: Samstag, 14. November 2015 11:46
To: mono-osx at lists.ximian.com
Subject: Re: [Mono-osx] El Capitan: App is terminated on double-click, but runs from terminal (open -a app)

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.
_______________________________________________
Mono-osx mailing list
Mono-osx at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-osx


More information about the Mono-osx mailing list