Jean-Marc Lasgouttes wrote: > Angus> Both Lars and you seem to be arguing that we shouldn't have a > Angus> LyXRC::path_prefix variable. I fail to see why this suggestion > Angus> is generating so much discussion. It's simple and it'll work. > > No, I am arguing that, besides this path_prefix variable, we should > add the binary dir to the path automatically.
What about the case when LyX is being run from the build directory? In such a case, adding the directory containing the LyX binary to the PATH is pointless. How about: #if !defined (USE_POSIX_PACKAGING) if (package().build_support().empty()) { vector<string> path = getEnvPath("PATH"); path.push_back(package().binary_dir()); setEnvPath("PATH", path); } #endif It'll be interesting to see if ::getenv("PATH") returns different styles of paths dependent on whether LyX is run from a MinSYS shell or from a DOS cmd shell. -- Angus