]> git.lyx.org Git - features.git/commitdiff
Replace environment variables in PATH prefix
authorEnrico Forestieri <forenr@lyx.org>
Fri, 11 Jan 2019 17:15:40 +0000 (18:15 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:56 +0000 (14:39 +0200)
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

index 42dfad3731b7c4b057a9cb50ebafe92cf392b29e..46d23f2f9c00ad11fae48cbe9211dc5a0422c3aa 100644 (file)
@@ -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);
                }