Details
Description
Consider this script:
#!/no/such/file
Assume it is in a file called exe.sh. Now we call it from QProcess:
#include <QProcess> #include <QtDebug> int main() { QProcess p; p.start("./exe.sh"); p.waitForStarted(); qDebug() << p.errorString(); }
Output from Qt 5.5:
No such file or directory
This comes from the system and gives the actual reason for the error.
Output from Qt 5.6 (current git HEAD):
Process failed to start
This is a generic error message that does not add anything to the information already available from QProcess' error type.
The likely culprit is commit 5147f73ac3.