[Mono-list] How to start a process? (Crossplatform)

Gregory Junker gjunker at dayark.com
Mon Jun 10 04:11:35 UTC 2013


On 6/9/2013 5:18 AM, Daniel Lo Nigro wrote:

> To just determine if the user is running on a non-Windows platform, you
> can use System.Environment.OSVersion.Platform and see whether it's equal
> to PlatformID.Unix or PlatformID.MacOSX. On these platforms, you can
> assume Mono is being used.

This is what we ended up doing, it works fine for our needs (haven't 
tried it on OSX).

>
>
>
> On Thu, Jun 6, 2013 at 8:08 PM, Sergey Khabibullin <x2bool at gmail.com
> <mailto:x2bool at gmail.com>> wrote:
>

>     Obviously Ican'tforce all users touse "Proper Linux Distro", andI can't always use "mono" prefix,

If they do not have mono installed (or you do not supply it with your 
application) they can't run it on Linux anyway.

Given that Mono has to exist before your app can run, it is fine to 
launch it via shell script that invokes it using either the installed 
Mono or the one you supply. This is what we ended up doing and it has 
not caused any problems.

Greg


More information about the Mono-list mailing list