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

Sergey Khabibullin x2bool at gmail.com
Mon Jun 10 06:51:34 UTC 2013


Thank you all for response! Ended up with checking platform at runtime.


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

> Hello, I am trying to start a process in my application.
>
> Process.Start("utility.exe", "my argument list");
>
> As you see the "utility.exe" is in the same directory as the application itself.
> Works fine for Windows and some Linux distros. But in other distros I can't start
>
>  the utility just by "utility.exe", and I forced to use "mono utility.exe". I belive this behaveour
> is because of that in some distros mono binaries registered as executable files, and in others not.
>
> Obviously I can't force all users to use "Proper Linux Distro", and I can't always use "mono" prefix,
>
> or I lose the Windows platform. Is there any solution to this problem?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130610/52391cad/attachment.html>


More information about the Mono-list mailing list