Next Release?

Pavel Sanda sanda at lyx.org
Wed Aug 30 12:06:48 UTC 2023


On Wed, Aug 30, 2023 at 01:07:45PM +0200, Jürgen Spitzmüller wrote:
> Am Mittwoch, dem 30.08.2023 um 11:47 +0200 schrieb Jürgen Spitzmüller:
> > But independent of my patch we use this chain for the other
> > citation_view chains (url, file, doi, etc.). So we need to fix it
> > anyway.
> 
> The new iteration of the patch uses our own viewers for local files
> rather than QDesktopServices() (for external files, we keep using the
> latter, as we also do in InsetHyperlink for instance).
> 
> This should cure your woes.

> +	if (url.isLocalFile()) {
> +		FileName fn(fromqstr(url.path()));
> +		string const format = theFormats().getFormatFromFile(fn);
> +		success = theFormats().view(buf, fn, format);

Yep, this is it!

I like this approach, let me test little bit if I see some problems.

Pavel


More information about the lyx-devel mailing list