From b94b9abe3247ca2872da3c2450d9ffacf7b59afa Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Sun, 13 Feb 2005 17:12:34 +0000 Subject: [PATCH] Invoke prependEnvPath to adjust the PATH only if 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 | 5 +++++ src/lyx_main.C | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index c821baaf51..7ca58b3487 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-02-13 Angus Leeming + + * lyx_main.C (init): invoke prependEnvPath to adjust the PATH + only if lyxrc.path_prefix is not empty. + 2005-02-12 Georg Baum * bufferparams.C (readGraphicsDriver): prevent crash diff --git a/src/lyx_main.C b/src/lyx_main.C index e356ffa7aa..d5074964f9 100644 --- a/src/lyx_main.C +++ b/src/lyx_main.C @@ -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. -- 2.39.2