From: Enrico Forestieri Date: Fri, 11 Jan 2019 17:15:40 +0000 (+0100) Subject: Replace environment variables in PATH prefix X-Git-Tag: 2.3.3~42 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3131873a6dc15e27f9ccbf64f24784eb8476d7af;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. (cherry picked from commit 472bdf59109b4188df3bbad18ac3aa60670962aa) --- diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 4ba14e6c7f..71f184d69d 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -2997,7 +2997,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); } diff --git a/status.23x b/status.23x index d62a9607b6..08f5fcc124 100644 --- a/status.23x +++ b/status.23x @@ -136,6 +136,8 @@ What's new - Fix handling of labels with change tracking (bug 6563). +- Expand environment variables when modifying the PATH prefix. + * INTERNALS