QProcess::exec almost certainly takes care of this automatically.