[LyX/master] Fogotten case for replacing $$python.

Pavel Sanda sanda at lyx.org
Fri Feb 24 17:43:51 UTC 2023


commit b4ed627ecc5bbb40a37ae913667b7e8bb886ef4d
Author: Pavel Sanda <sanda at lyx.org>
Date:   Fri Feb 24 19:43:56 2023 +0100

    Fogotten case for replacing $$python.
    
    Patch from Jose.
    https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg219385.html
---
 src/frontends/qt/qt_helpers.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/frontends/qt/qt_helpers.cpp b/src/frontends/qt/qt_helpers.cpp
index 01c5d7b..97f316a 100644
--- a/src/frontends/qt/qt_helpers.cpp
+++ b/src/frontends/qt/qt_helpers.cpp
@@ -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


More information about the lyx-cvs mailing list