Enrico Forestieri wrote: > On Thu, Mar 13, 2014 at 10:43:36PM +0100, Georg Baum wrote: > >> Vincent van Ravesteijn wrote: >> >> > I did some debugging. The problem lies in the use of >> > QProcess::startDetached. If you call this function with a the "cmd" >> > prefix, you will inevitably get a command window. >> >> So in some sense it does what it is told to do;-) > > This is new to me. On Vista I see no command window. This must be > a novelty of newer Windows version.
Strange. Maybe this also depends on the used qt version? >> > Omitting the "cmd" could be a solution. Does it have any use to add the >> > latexEnvCmdPrefix to a viewer command ? >> >> This looks rather wrong to me. This should only be added when running a >> TeX related converter, e.g. LaTeX, BibTeX etc. > > No, all enviroment variables should be correctly made available to all > subprocesses, and (thanks to QProcess) this is the only way we have to > modify the environment. I admit I did not think of xdvi, which might need to fetch stuff from other places, because the DVI file may contain references. Georg