Not the whole function, as it also tailors the executable name to the OS. I did replace the system() call with QProcess::exec(), though.