Georg Baum wrote:
Possible solutions I can think of are:

* Getting rid of the whole viewer checks in configure.py on Windows (the application names are only for UNIX anyway) so there is no need anymore to override viewers by auto-detection.

That would not help, because the ability to autoopen is checked in LyX itself. Setting the viewer to "" would work, but that means to explicitly disable viewing this format.

When these UNIX applications are no longer detected on Windows there is no need anymore to override things when a viewer is set by configure.py. This can be modified in LyX itself.

It will also make configuration faster. For UNIX/Cygwin there will be no difference.

What you see was done on purpose. In your case the installer should modify the global pdf association, probably only after user confirmation.

That won't help. The PDF view script uses this PDF association to display PDF files, it only makes sure that a temporary version is displayed so LyX does not fail when the PDF file is already opened.

This is not intended to be used for all applications.

If that is not wanted, then an entry to the preferences should be added. This can also be done by the installer.

That will only work for the current user. The settings in lyxrc.dist are also overridden by auto-detection.

The idea behind this is that all automatic settings should come from the OS. If for some reason you want a different application in LyX for a given file format (which is not unreasonable, e.g. you normally want to open images in irfanview, but for editing from LyX you prefer the gimp) then this is a personal setting that needs to be done explicitly in the preferences.

I understand that. In this case however the PDF view script will use the default Windows PDF viewer, it only keeps the original file writable.

BTW. you should not modify configure.py but put windows specific things in lyxrc.dist instead.

When an external application needs to be checked to enable a feature, like the pdftools here or the dtl tools for DVI files, that can only be done in configure.py.

Joost

Reply via email to