Am 18.04.2020 um 22:49 schrieb Kornel Benko <[email protected]>: > > Am Sat, 18 Apr 2020 22:11:36 +0200 > schrieb Stephan Witt <[email protected]>: > >> Yes, it’s possible. But not at the same location. /Applications/LyX.app is >> 2.3 or 2.4 >> but not at the same time. And Skim looks there as I said. >> >> One can change Skim’s preference to look at some other place - >> but unfortunately there is no automatic solution for this. >> >> It doesn’t matter what version is used. lyxeditor is able to lookup the pipe >> location >> to direct the reverse lookup command of Skim to the running LyX instance. > > What could be done to make lyxeditor independent is: > Before lyx calls some external program (e.g. Skim), lyx sets an environment > variable, > for instance 'LYX_SERVER_PIPE'. Skim may call lyxeditor, and I suppose, the > environment > is inherited, so that also lyxeditor gets it.
LyX and Skim are completely independent processes and are started by the so called Launch-Service. On a modern Mac they're are running in separate sandboxes and the user must explicitly allow the interprocess communication. The idea of a common environment is obsolete here. The authors of the IPC protocol (AFAIK) didn’t care for the multi-version problem and IMO this would be the only reliable solution: to send the source of the request within the request (forward search) and use it to handle the opposite direction (reverse search). Stephan > Instructing lyxeditor to consider it should not be that difficult. > > Kornel > -- > lyx-devel mailing list > [email protected] > http://lists.lyx.org/mailman/listinfo/lyx-devel -- lyx-devel mailing list [email protected] http://lists.lyx.org/mailman/listinfo/lyx-devel
