Enrico Forestieri wrote:
On Mon, May 11, 2009 at 11:26:22AM +0200, Abdelrazak Younes wrote:

Vincent van Ravesteijn - TNW wrote:
'start /min pdfview "/path/to/doc.pdf"'

At least, my pdf is correctly generated.

Vincent

Maybe PATH is different when using QProcess and therefore could not find pdfview.

Also quotations are critical because QProcess does maybe its own "corrections" to the parameters.

This is the culprit. All parameters like $$i and $$o are enclosed in \'
.
Not working here too.

Kornel
To be clear, the single quotes were mine. They aren't causing the
problem.
Yep, and I already tried to replace single quotes with double and still, python won't proceed, same for svn. This is really weird. I tried:

python2.5 -tt "/home/younes/devel/lyx/trunk/lib/configure.py" --with-version-suffix=2.0

/usr/bin/python2.5 -tt "/home/younes/devel/lyx/trunk/lib/configure.py" --with-version-suffix=2.0 python -tt "/home/younes/devel/lyx/trunk/lib/configure.py" --with-version-suffix=2.0

The attached (dirty&quick) patch would work.

Unfortunately not, I already tried that. This is something else... This is very weird as I used QProcess extensively at work (for Linux and Windows) and never saw this problem. Could it be that LyX initialize Qt or the system environment in some special ways?

 Note that there is a
subtle difference in using \" instead of \' for quoting on *nix.

Could you elaborate please?

This only demonstrates how well thought is this QProcess attempt...


Reply via email to