Am 19.04.2020 um 14:44 schrieb Kornel Benko <[email protected]>:
> 
> 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.  

BTW, lyxclient with option -g doesn’t use the pipes we’re talking about.
It’s using the socket in LyX's „system directory“ aka temporary directory.

Stephan

>> 
>> 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

So you have to close okular after closing lyx or it will stop working.

Hmmm…

Stephan

-- 
lyx-devel mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to