[Qt-interest] QProcess and Vista

Willy P willy.lists at gmail.com
Sat Feb 21 03:21:35 CET 2009


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() += "." );
>>
>> Thanks in advance...
>>
>> -Willy
>>
>>
>> On Fri, Feb 20, 2009 at 3:38 PM, Willy P
>> <willy.lists at gmail.com> wrote:
>> > I am desperate.  I have been at this for D-A-Y-S.
>> >
>> > I have a QProcess that kicks off ffmpeg w/ a bunch of
>> parameters.  The
>> > code works fine on Linux, OS X and XP and it fails on Vista.  If I
>> > print the input to QProcess::start and then paste it onto cmd.exe it
>> > works.  So there is something wrong in the space between
>> QProcess and
>> > ffmpeg.  QProcess has the correct working directory.  If
>> anyone could
>> > tell me what I might be missing that would be great.
>> >
>> > #ifdef Q_OS_WIN32
>> >        args.push_front( "ffmpeg" );
>> >        args.push_front( "/C" );
>> >        qDebug() << "cmd.exe " + args.join( " " );
>> >        ErrorLog::write( "cmd.exe " + args.join( " " ) );
>> >        _ffmpeg.start( "cmd.exe", args );
>> > #else
>> >
>> > Thanks so much...
>> >
>> > -Willy
>
> Hi Willy,
>
> What happens if you do not set those values on the QProcess?  Other replies
> have only used a default contructed QProcess.
>
> Also, doesn't the environment require ';' separators?  Maybe the dot at the
> end is treated as suspicious by Vista?
>
> Is there an error code that is returned on Vista?
>
> Tony.
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list