PDA

View Full Version : QProcess does not execute Automator app in OSX 10.6



Markus
19th April 2010, 00:19
Hi All,

I am having trouble executing an Automator app created and running under Max OS X 10.6. (same Qt code runs fine under 10.5). The exit code of QProcess is 255 (-1).
I used process->start("/usr/bin/touch /Users/me/file.x") to verify that QProcess is running under 10.6 at all and it does.
So it must have something to do with the Automator app.
The automator app is 64bit, can that be the problem?

Any suggestions

Markus

Markus
19th April 2010, 04:12
I found the reason:

the actual executable inside the /Contents/MacOS/ folder contains a space: "Application Stub".
You have to rename it before it is executable with QProcess.

Markus