How to selectively start an application under Rosetta OR Apple Silicon from another application

From within our main app we start our secondary app (single instance) using myapp.startAsProcess(); It works well.

Now with the Apple silicon we need to have our secondary app (universal binary) open as the same arch as the main app…

From terminal we know we can use this to force open as Rosetta:
arch -x86_64 /Applications/

How can we do the equivalent from code within Juce?

(I know there is system(“…”) but prefer not to use this clunky method. (and Im not sure if system will block multiple instances from opening should it be called twice?)…

You might want to have a look at the ChildProcess class.

Cheers for the heads-up, Id overlooked that class - works nicely.