]> git.lyx.org Git - lyx.git/commitdiff
Invoke prependEnvPath to adjust the PATH only if
authorAngus Leeming <leeming@lyx.org>
Sun, 13 Feb 2005 17:12:34 +0000 (17:12 +0000)
committerAngus Leeming <leeming@lyx.org>
Sun, 13 Feb 2005 17:12:34 +0000 (17:12 +0000)
lyxrc.path_prefix is not empty.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9620 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/lyx_main.C

index c821baaf518614d3e44ddaf7b0e6d86bc370b29c..7ca58b34872609051a5e4ce9cd3af2f532b163ea 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-13  Angus Leeming  <leeming@lyx.org>
+
+       * lyx_main.C (init): invoke prependEnvPath to adjust the PATH
+       only if lyxrc.path_prefix is not empty.
+
 2005-02-12  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
        * bufferparams.C (readGraphicsDriver): prevent crash
index e356ffa7aafdf826e68c86ab8aabac29f520008a..d5074964f93fbe9bf1443ee71314a381e6e9d2fd 100644 (file)
@@ -477,7 +477,8 @@ void LyX::init(bool gui)
                lyxrc.print();
 
        os::cygwin_path_fix(lyxrc.cygwin_path_fix);
-       prependEnvPath("PATH", lyxrc.path_prefix);
+       if (!lyxrc.path_prefix.empty())
+               prependEnvPath("PATH", lyxrc.path_prefix);
 
        // Having reset the PATH we're now in a position to run configure
        // if necessary.