Am Sun, 19 Apr 2020 13:52:01 +0200 schrieb Stephan Witt <[email protected]>:
> > Imagine that you have 2 different version of lyx running. Each one
> > previewing
> > some different pdf. How can you select the correct pipe?
>
> The answer is easy: you cannot.
>
> Did you do that already?
>
> There is no way to run different versions in parallel with the same user
> and have a working pipe communication.
>
On linux this is easy.
Lyx sets the env LYXSOCKET.
Okular calls 'lyxclient -g %f %s'.
lyxclient interprets the env LYXSOCKET and connect to lyx.
The only problem is that there are versioned lyxclients (lyxclient2.4
lyxclient2.3)
and no lyxclient. So I have a perl-wrapper which calls lyxclient2.4.
Luckily there is no need to differentiate between the versioned lyxclients.
> A practical scenario I can imagine is different from yours:
>
> I’m using 2.3.x for production and have it installed at the default location.
> The preview with forward and reverse search works out-of-the-box.
>
> Later I want to test the developer version 2.4.x. I build the package and
> start
> preview of the Users Guide and want to test the interoperation with Skim.
> Of course I’m not running 2.3.x at that moment. The pipes are created at
> runtime
> in the 2.4 universe and not found by the 2.3.x lyxeditor script. So I have to
> setup both LyX installations to use the same directory for the pipes to get
> it working. Now both versions have explicit serverpipe entries in the user
> prefs.
>
> To debug something I have a third user directory (w/o version suffix) and then
> I have to set the correct value for the serverpipe in this environment too.
Does not feel very simple, but apparently you are now used to it.
> Stephan
Kornel
pgpbFv6kbET0m.pgp
Description: Digitale Signatur von OpenPGP
-- lyx-devel mailing list [email protected] http://lists.lyx.org/mailman/listinfo/lyx-devel
