On Sun, 2023-02-19 at 22:15 +0100, Pavel Sanda wrote: > On Sun, Feb 19, 2023 at 06:43:20PM +0100, Jürgen Spitzmüller wrote: > > > I suspect $${python} is not replaced. > > Jose, can you have a look at this? > It used to work when python -tt was used in configure.py.
The patch attached should fix this. > After the $$python trick it's not being replaced anymore and this > might not be the only script which will fails now. I admit that this could happen but it should be minimal since I tried to track all the occurrences of $${python}. In any case I will double check to ensure that this is the case. > Pavel -- José Abílio
diff --git a/src/frontends/qt/qt_helpers.cpp b/src/frontends/qt/qt_helpers.cpp index 01c5d7bde9..97f316ab6d 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
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel