]> git.lyx.org Git - features.git/commitdiff
Fogotten case for replacing $$python.
authorPavel Sanda <sanda@lyx.org>
Fri, 24 Feb 2023 18:43:56 +0000 (19:43 +0100)
committerPavel Sanda <sanda@lyx.org>
Fri, 24 Feb 2023 18:44:37 +0000 (19:44 +0100)
Patch from Jose.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg219385.html

src/frontends/qt/qt_helpers.cpp

index 01c5d7bde968941319e4ca89851d8105b0c31111..97f316ab6d015f417d09f2d91701112c653670ed 100644 (file)
@@ -305,7 +305,8 @@ void showTarget(string const & target, string const & pdfv, string const & psv)
                if (!opts.empty())
                        opts += " ";
                Systemcall one;
-               string const command = lyxrc.citation_search_view + " " + opts + tar;
+               string const viewer = subst(lyxrc.citation_search_view, "$${python}", os::python());
+               string const command = viewer + " " + opts + tar;
                int const result = one.startscript(Systemcall::Wait, command);
                if (result == 1)
                        // Script failed