In <[EMAIL PROTECTED]>, Bo Peng <[EMAIL PROTECTED]> typed:
> One problem with the rc approach is that re-configuration is required 
> whenever users change a filetype association. Also, opening a file 
> with its associated application is quite easy under windows. (There are APIs.)

Since Bo Peng didn't provide context, I groveled it out by chasing
down the message-id he's replying to. He is replying to a message
pointing out how to dig information out of the windows registry. From
what he says, I presume said information would be the type->viewer
map, and that reconfig should store the appropriate viewer in the LyX
preferences file.

A reconfig isn't required. Until that's done, LyX will just use the
"old" viewer. Who knows - that may even be the one the User wants? I
know I don't want LyX to use my default web browser for View>HTML.

On OS X, the solution is easy - you look for the "viewer"
/usr/bin/open. If you find it, you use it. I've got an "open" for Unix
that I've been using in LyX for the last week. I hope to have a
version with enough features that it's useful for end users done this
weekend. According to Jean-Marc Lasgouttes, you should use "start" on
Windows. Is that an external application? If so, then LyX just needs
to know how to launch external command line applications, so no
changes are needed. configure will need to be taught to check for
open/start, and use those for the viewer for everything if it finds
them.

        <mike
-- 
Mike Meyer <[EMAIL PROTECTED]>          http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

Reply via email to