Joost Verburg wrote:

> Enrico Forestieri wrote:
>> Joost, given that the preferences file takes precedence, why don't
>> simply modify configure.py such that when a preferences file does
>> not already exists, on Windows it provides a default one with a single
>> appropriate \format entry for pdf?
> 
> In my opinion, the new patch I provided is a much better solution. There
> won't be any hacks in configure.py and the Windows installer will write
> it's settings to lyxrc.dist.

Your simple patch is IMO a hack. Nobody would understand what the ! means.
What is wrong with the $$s solution I proposed? If you really want to be
able to specify arbitrary viewers in configure.py that override the auto
stuff then the correct solution would be to introduce a new format flag
noautoviewer (and noautoeditor), but IMO this is wrong. Or maybe instead of
the flag one could use a viewer like

"noauto C:\Programs\foo\bar.exe"

which would mean that C:\Programs\foo\bar.exe is the viewer and overrides
the auto setttings.
Overriding the auto stuff does only make sense IMO for special helper
programs that we distribute ourselves, so I really think the solution with
$$s is the best one.


Georg

Reply via email to