From aea43fb1dd579fb209842b30ff878c13c25f77be Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Fri, 11 Jan 2019 18:15:40 +0100 Subject: [PATCH] Replace environment variables in PATH prefix The PATH prefix modified through the GUI was set without replacing embedded environment variables. This might have caused problems on Windows with external python installations. --- src/LyXRC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 42dfad3731..46d23f2f9c 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -2936,7 +2936,7 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new) case LyXRC::RC_PARAGRAPH_MARKERS: case LyXRC::RC_PATH_PREFIX: if (lyxrc_orig.path_prefix != lyxrc_new.path_prefix) { - prependEnvPath("PATH", lyxrc_new.path_prefix); + prependEnvPath("PATH", replaceEnvironmentPath(lyxrc_new.path_prefix)); // Resets python path support::os::python(true); } -- 2.39.5