Am Sun, 19 Apr 2020 14:25:05 +0200 schrieb Stephan Witt <[email protected]>:
> Am 19.04.2020 um 14:17 schrieb Kornel Benko <[email protected]>: > > > > 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. > > So Okular is a child process of LyX? Yes. > And there are two Okular instances for two LyX > processes? Yes. Just to be sure: $ ps -ef | egrep 'okular|lyx' kornel 20481 20471 0 14:32 pts/1 00:00:03 lyx2.3 kornel 20631 20422 2 14:42 pts/0 00:00:02 lyx2.4 kornel 20660 1 3 14:43 ? 00:00:00 okular Welcome.pdf kornel 20681 1 4 14:43 ? 00:00:00 okular Dezimal.pdf kornel 20695 20561 0 14:43 pts/2 00:00:00 grep -E okular|lyx ... > >> 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. > > This is a setup I have to do once and this works until 2.5 is coming :) > > Stephan > Kornel
pgpZaytfRgRqT.pgp
Description: Digitale Signatur von OpenPGP
-- lyx-devel mailing list [email protected] http://lists.lyx.org/mailman/listinfo/lyx-devel
