So I need to spawn a separate app on standalone which should then start in the foreground and should be limited to one instance. I use the Process.Start method currently
This all works fine on windows.
On Mac the spawned window stays in the background and also it is possible to have more than 1 instance of the app spawned, even though the force single instance box is ticked.
So is there a better way to launch this secondary app on Mac than the .net Process.Start method?
You can probably call /usr/bin/open with Process.Start. It will open windows in the foreground and it has the -n flag.
1 Like