kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #09379
Re: [PATCH] Log of opened and closed applications in KiCad launcher
El 14/01/13 14:15, Jacobo Aragunde Pérez escribió:
> El 14/01/13 14:00, Miguel Angel Ajo Pelayo escribió:
>> Hi Jacobo, thanks for the patch!,
>>
>> Doesn't look bad for me, but please check:
>>
>
> Hello, thanks for the review :)
>
>> * You removed the WINDOWS special case, does it work in Windows now
>> without removing
>> the "aFlags" ?
>>
>> -bool ProcessExecute( const wxString& aCommandLine, int aFlags )
>> +int ProcessExecute( const wxString& aCommandLine, int aFlags, wxProcess
>> *callback )
>> {
>> -#ifdef __WINDOWS__
>> - int pid = wxExecute( aCommandLine );
>> - return pid ? true : false;
>> -#else
>> - wxProcess* process = wxProcess::Open( aCommandLine, aFlags );
>> - return (process != NULL) ? true : false;
>> -#endif
>> + return wxExecute( aCommandLine, aFlags, callback );
>> }
>>
>
> So the purpose of the #ifdef was removing the flags from the call, I
> see... I'll try to test in a Windows box, in any case the setup will be
> useful in the future.
>
I've checked that the only flag used in KiCad is wxEXEC_ASYNC, and it
doesn't have problems in Windows (in fact, it's the default flag when
you don't set anything). Moreover, there is one flag which only has
effect under Windows, so I think it's safe to pass that argument.
In any case I will try to setup a Windows environment to confirm it works.
--
Jacobo Aragunde
Software Engineer at Igalia
Follow ups
References