The attached patches fix the problem that we have to use cmd.exe prefix to start a detached process with environment variables using QProcess.
I have checked that - batch files still work, - the environment variable TEXINPUTS is correctly set when querying from the batch file or from an executable. Please review this code. Maybe some special thing has to be done on Cygwin. Vincent
0001-Factor-out-latexEnv.patch
Description: Binary data
0002-Do-not-show-cmd-window-when-viewing-on-Windows.patch
Description: Binary data