mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
bfd86a947a
commit
3131873a6d
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user