On Thu, Jun 17, 2010 at 10:33:38AM -0400, Joost Verburg wrote:
> Hi,
>
> Currently we're using a wrapper application (LyXLauncher) on Windows to  
> hide the command prompt windows that keep popping up when LyX starts  
> external applications for e.g. image conversion. These windows appear  
> due to the different concept of GUI/console applications on Windows.

I don't know whether Windows 7 broke something in this respect, but once
the console is hidden, launching external applications should not pop up
any console windows. It is so at least with Vista.

> However, this workaround causes problems with the Windows 7 taskbar.  
> Therefore I think we should fix the real issue by using the Windows  
> CreateProcess API instead of _popen/spawnvp, which has additional  
> features to deal with this situation.

I think this is a step backward, as much as the introduction of QProcess.
It is a step backward because until now batch files could be executed
using runCommand(), but with your proposed patch they would not anymore.

For example, the introduction of QProcess made it impossible to put a
batch file called latex.bat earlier in the PATH in order to perform some
further (or different) processing when compiling a document, because
batch files cannot be executed by QProcess.

> What do you think about the attached patch?

If I had no choice than using the native version of LyX, I would be
opposed to such patch (just like I would have been opposed to QProcess),
but having a choice, I really don't care if you cripple some more the
native Windows version.

-- 
Enrico

Reply via email to