[Mono-osx] Error with "psn" command line option for .app on OS X

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Sep 30 18:08:59 EDT 2010


On Tue, Sep 28, 2010 at 4:16 AM, stevenspencer
<stevenspencer01 at gmail.com> wrote:
>
> Here is the launch script being used:
...
>>     ln -s "$MONO_PATH" "$EXEC_PATH"
>>     exec "$EXEC_PATH" "$RESOURCES_PATH/$ASSEMBLY" 2> Error.txt
>> fi

I'm going to guess that OS X is somehow mangling the argument into
your exec command because you didn't pass the commandline args $* ?

Also, dumping errors to Error.txt will just dump them in the working
directory, and the ln will fail if the user doesn't have write access
to the app bundle...

Regarding the Mono check, you might like to use MD's
mono-version-check script:
http://github.com/mono/monodevelop/blob/master/main/build/MacOSX/mono-version-check

It's very easy to use:
./mono-version-check "Application Name" 2 6

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Mono-osx mailing list