Georg Baum schreef op 13-3-2014 22:20:
aparsloe wrote:

For instance, under the format LyX in the Viewer slots I have put Custom
and notepad++ (a Windows text editor). Clicking on the View other
formats > View LyX button displays the LyX file in its native format in
the text editor but with the command window also showing. However, if I
make notepad++ the default .lyx file viewer in Windows and change the
Viewer slots to Custom and auto, save and now click  View other formats
  > View LyX, notepad++ is launched, displaying the LyX file in its
native format but with no command window showing.  (Incidentally this
makes a good alternative to the Source pane for viewing LyX files in
native format.)
This is interesting, but I did not quite understand what exactly you
configured. Could you please send us the lines of your preferences file
related to both options (the working one and the not working one)? This
would make debugging easier, and maybe there is an easy solution.


Georg

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.

Omitting the "cmd" could be a solution. Does it have any use to add the latexEnvCmdPrefix to a viewer command ?

Other solutions using QProcess::start did not work as I never seem to get a finished() signal to be able to delete the process. This deletion of the Qprocess object was the reason to change this in commit 52258212.

Vincent

Reply via email to