Use the following code to launch and external program that needs to continue running after the app that launches it closes:
QString app = "myApp";
QProcess::startDetached(app);
This works fine in windows but it fails on the Mac. Why? The app attempting the launch doens't hang, it just returns a false for success/failure.
I've tried adding the .app after the name, I've even tried setting the working directory to both the apps dir and the myApp.app/Contents/MacOS directory. Still nothing.
Any help is appreciated!
[Added by Edit]
I can successfully launch myApp by the following:
QProcess::startDetached("/usr/bin/open", QStringList() << "path_to_myApp/myApp.app");
Does it have to be like this?
Thanks
Bookmarks