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 472bdf5910)
This commit is contained in:
Enrico Forestieri 2019-01-11 18:15:40 +01:00
parent bfd86a947a
commit 3131873a6d
2 changed files with 3 additions and 1 deletions

View File

@ -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);
}

View File

@ -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