Cannot start an external process on mac

Hi,

I’m successfully using System.Diagnostics.Process.Start() to start my external mono executable on windows. However it fails on mac. I’m not getting any error, simply nothing at all happens.

I tried doing it the following way:

System.Diagnostics.Process.Start("mono", "/path/program.exe");

Also I’ve tried opening terminal like the following (which also failed):

System.Diagnostics.Process.Start("Terminal");

The only thing I was able to do is launch the Terminal in the following way:

System.Diagnostics.Process.Start("open", "-a Terminal");

Any ideas? I would really appreciate any help.

An .exe file is normally a Windows executable, which will not run on a Mac. Mac apps are bundles, not programs per se, so you need to specify the actual executable, rather than just the name. Terminal would normally be at /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal

–Eric

Thanks, but why mono won’t start? It’s the actual executable, located at “/usr/bin/mono”.