From: Enrico Forestieri Date: Fri, 11 Jan 2019 17:15:40 +0000 (+0100) Subject: Replace environment variables in PATH prefix X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=aea43fb1dd579fb209842b30ff878c13c25f77be;p=features.git 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. --- 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); }