Tell you what. The amount of time this discussion has taken so far I presume is comparable to what it takes to use the working and tested QProcess. And this will work on Windows (for those who compile LyX with Qt/Win) as well.
What's so bad about QProcess? No offense meant :) Cheers, Kuba