On 1/16/2011 10:16 PM, Stephan Witt wrote:
Now I think effectively it's a bug. In the past the external utilities where 
started with system() calls.
Then the shell interpreted the environment variables. This was replaced by 
QProcess::start. I'm almost
sure since then the environment variables has in path_prefix (if existent) will 
not expanded anymore.
If we do it explicitly when calling prependEnvPath() it works for me.

Yes, you're right. QProcess doesn't invoke the shell.

LyXDir should be a special case though since there is no such environment variable. Currently on Windows it is neccesary to write a path_prefix with absolute paths to the configuration files (e.g. "C:\LyXLocation\ImageMagick") because otherwise LyX won't find the external utilities which are located in separate directories. This makes it impossible to put LyX on a USB drive and complicates the installation and testing process.

It would make things a lot easier on Windows if expandPath could look for %LyXDir% and expand this to the LyX directory.

Joost

Reply via email to