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

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

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.

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

Well, with your lyxviewer scheme, you already have this problem, don't
you?

Yes (but I thought you wanted elegance! ;). Currently I have to enter the complete path to lyxviewer in the .pdf viewer's preferences. This is not a good solution since (a) on Mac lyxviewer is in a hidden directory inside the LyX.app bundle and (b) if LyX.app gets moved, the .pdf viewer's preferences must be updated.

One thing that may work is to try to put some information in the
environment. If LyX sets the variable LYX_PIPE and then calls the
viewer, will this new viewer inherit the environment of LyX and see
the variable?

Not in general. The viewer application may be opened prior to LyX (so that LyX merely requests that it open a new document).

Bennett

Reply via email to