[Development] RFC: QProcess variant or separate class for launching applications "GUI-style"
Gustavsen Richard
Richard.Gustavsen at theqtcompany.com
Wed Jan 13 12:21:24 CET 2016
> True, or no, that'd rather be "/usr/bin/open [-n] -W -a appbundle|bundle-exec". It wouldn't always be trivial to get the invocation just right, as that is a wrapper to LSOpenURLWithRole() whereas we'd probably use something more simple, with less ambiguous specification of the arguments. Besides, we identified a need to know the pid and also to be notified of process termination.
Note that this will also work on OS X (didn't read the other mails, ignore if it QDesktopServices has been discussed):
QDesktopServices::openUrl(QUrl("file:///Applications/Safari.app"));
-Richard
More information about the Development
mailing list