[LyX/master] Amend(1) 689f26d2: Add default path to server pipe (cmake build)

Kornel Benko kornel at lyx.org
Sun Apr 19 12:44:25 UTC 2020


Am Sun, 19 Apr 2020 14:25:05 +0200
schrieb Stephan Witt <st.witt at gmx.net>:

> Am 19.04.2020 um 14:17 schrieb Kornel Benko <kornel at lyx.org>:
> > 
> > Am Sun, 19 Apr 2020 13:52:01 +0200
> > schrieb Stephan Witt <st.witt at gmx.net>:
> >   
> >>> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200419/d40521e3/attachment.asc>


More information about the lyx-devel mailing list