Angus Leeming wrote:
I either don't understand python nor do I know who wrote the
lyxpreview2ppm.py-script.
Then perhaps you should read line 8 of this script?
Oh how embarrassing.
Maybe I'm blind but everything appears to be quoted correctly to me. The lines
below generate a string, gs_call in which all paths are certainly quoted.
Something like:
gswin32c.exe -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pnmraw -sOutputFile="C:
\Program Files\LyX\~\blabla%d.ppm" -dGraphicsAlphaBit=XXX -dTextAlphaBits=XXX
rYYY "C:\Program Files\LyX\~\blabla.ps"
I investigated a bit and the problem seems to be the call of gs itself:
The blabla.ps generated by Instant preview can be in a path with spaces
and will work as long as the gswin32c.exe isn't in a path with spaces.
So it seems that gs is somewhere called together with its path, e.g.
C:\Program Files\LyX\etc\Ghostscript\bin\gswin32c.exe -dNOPAUSE -dBATCH
-dSAFER -sDEVICE=pnmraw -sOutputFile="C:\Program
Files\LyX\~\blabla%d.ppm" -dGraphicsAlphaBit=XXX -dTextAlphaBits=XXX
rYYY "C:\Program Files\LyX\~\blabla.ps"
But that's only a guess.
regards Uwe