Am Mittwoch, 18. Oktober 2006 21:20 schrieb Joost Verburg:
> Georg Baum wrote:
> > I thought it would be a script, but that does not really matter. My 
logic 
> > goes as follows: If it is something specific to LyX then it should be 
> > installed in the LyX folder. We can detect this, because in this case a 
> > placeholder like $$s would be used.
> > If it is not installed in the LyX folder then it is something more 
general, 
> > and therefore subject to auto overriding.
> 
> Then how should LyX know that $$s should be replaced with something like 
> "pdfview"?

$$s is already a placeholder that gets replaced with the path to the script 
directory, see libScriptSearch in src/support/filetools.C and the various 
entries with $$s in configure.py.

We could either put the program in the script directory and use $$s 
directly, or if somebody does not like that because it is not a script we 
could create a similar directory and placeholder, e.g. tools and $$t.
 
> It will be a custom written tool for LyX/Windows, not a common thing 
> like the dtl tools. It will also not be a script like clean_dvi.
> 
> But if you like it to be in configure.py and can provide a method for 
> configure.py to override the auto-detection, that's also fine with me.

I already proposed two method: Either a flag like noautoview, or putting 
noauto in front of the entry, e.g. "noauto C:\Programs\LyX\pdfview.exe". 
That would basically the same as the patch with the !, but IMO better 
understandable.


Georg

Reply via email to