[Qt-interest] QProcess and Vista
Thiago Macieira
thiago.macieira at trolltech.com
Sat Feb 21 10:41:33 CET 2009
Willy P wrote:
>Tony, you got it. It was the "."
>
>I think I need it for *nix platforms.
>
>THANK YOU SO MUCH!
>
>-Willy
>
>On Fri, Feb 20, 2009 at 5:16 PM, Tony Rietwyk
>
><tony.rietwyk at rightsoft.com.au> wrote:
>> Willy wrote:
>>> Also,
>>> Here's my QProcess setup:
>>>
>>> _ffmpeg.setProcessChannelMode(QProcess::MergedChannels);
>>> _ffmpeg.setEnvironment( QProcess::systemEnvironment() += "." );
I'm sorry, but this solution makes no sense. How did you come up with it?
Did you read it somewhere else? A Microsoft KB article maybe?
QProcess::systemEnvironment() returns a QStringList, which is a
QList<QString>.
That means it adds an environment variable with just a dot. However, the
environment is supposed to be "name=value" pairs and there's no equal sign
in the "." entry.
The documentation for CreateProcess on MSDN (http://msdn.microsoft.com/en-
us/library/ms682425.aspx) doesn't indicate that this should happen at all.
So, to me, this sounds like a Windows bug.
One more thing: for Qt 4.6, QProcess environment will be kept in a QHash,
meaning that you can't use the trick to append (the order of entries in a
QHash is not defined).
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Product Manager - Nokia, Qt Software
Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090221/7ecf23be/attachment.bin
More information about the Qt-interest-old
mailing list