On Jan 15, 2007, at 9:01 AM, Jean-Marc Lasgouttes wrote:

"Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes:

 Trying to find .lyxpipe.in in the preferences file is an ugly
hack, as you might guess :) I propose a different strategy: add a
new place holder $$pipe (or something) for viewers that would be
the address of the pipe (or "none" if there is no pipe). Wouldn't
that solve your problem in an elegant way?

Bennett> Would this work in my situation? I need the lyxviewer script
Bennett> to have access to the path to lyxpipe, but lyxviewer is
Bennett> called by only some .dvi or .pdf viewers. That will require
Bennett> setting appropriate preferences in the .dvi/.pdf viewer, but
Bennett> I'd prefer to have things just work on LyX's end (without
Bennett> requiring that users also change the viewer settings).

So this lyxviewer script is something you set in the (external)
viewer's preferences, right?

Yes.

Obviously OS X is able to find a running
LyX (because it does single user stuff), and thus it should be
possible for it to send message to this running LyX directly. I
suspect we could/should replace the pipe mechanism by some appleevent.

(What if there's more than one instance of LyX running, as when I have LyX-1.4.x and -1.5 going at the same time? Is this a case we should be worried about?)

Bennett

Reply via email to