On Mon, Aug 24, 2020 at 11:13:56AM +0200, Jürgen Spitzmüller wrote:
> Am Freitag, den 21.08.2020, 09:56 +0200 schrieb Pavel Sanda:
> > I am not entirely against pythonic solution, but I think at this
> > stage it's really for win users to step up. I can make the linux part
> > working if they come up with a solution.
> 
> Humble attempt attached. Works for me (on Linux) and is surprisingly
> fast (though arguably a bit slower than locate).
> 
> Some advantages over the bash script apart from portability:
> 
> * No hardcoded viewer. This checks for the same set of viewers than
> configure.py and takes the first match. Also, there are options to
> specify a custom pdf/ps viewer (-v and -w)

Nice, thanks for working on the Python script. Regarding the PDF/PS
viewers, another possibility would to exploit that LyX knows the
preferred PDF and PS viewers. Either LyX could pass the viewer paths as
arguments to the script or the script could just return the path to the
PDF/PS file and LyX could open it. I have no idea if either of those
would be preferred, but I just mention it.

Scott

Attachment: signature.asc
Description: PGP signature

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to