The result is that in the Preferences dialog, the right viewers/ editors show up as "auto" -- at least for the most part. However, there are some oddities, which lead me to question whether it's actually working as it should.
Yes. This means canAutoOpenFile is working.
1. The generated lyxrc.defaults file has odd values, which leads me to think reconfigure is not paying attention to Mac native apps but is only looking at unix apps. Thus, gimp (not Mac native) shows up as the viewer/editor for all image formats, even though the default on my system is something else (mostly Preview.app). (In fact, the only change between the old lyxrc.defaults and the new one is the substitution of "gimp" for "none" in these cases.)
With this patch (if working correctly), these values do not matter at all. Associated applications will be called regardless of detected ones.
2. LaTeX, Plain text, EPS, Postscript, PDF (all varieties), and HTML all show up as either "" "none" or "none" "" for viewer/editor. Is this what it should be? -- .pdf files open properly (and show up in LyX's Preferences dialog as "auto").
I am not quite sure. I am confused by the use of "", "auto", "none" and later format conversions.
There are two file formats for which I would have thought we'd want a viewer/editor but for which none show up: .txt and .tex files. Can these be added to the auto-open code?
You should be able to set their viewer to auto or an application. Bo