Am 19.04.2020 um 13:23 schrieb Kornel Benko <kor...@lyx.org>: > > Am Sun, 19 Apr 2020 13:08:17 +0200 > schrieb Stephan Witt <st.w...@gmx.net>: > >>> But we really need some way to give info about the correct pipe >>> to the relevant programs IMHO. >> >> I’m not sure. These pipes are somewhat portable but nevertheless a strategy >> of inter-process-communication that is not common. I think it’s even >> insecure. >> >> Improvements in this area should be carefully designed and I suspect the >> pipes >> are subject to abandon. >> >> Again: what is the problem you want to solve? >> >> Stephan > > 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 Unix the better IPC-mechanism would be D-Bus protocol based anyway, IMHO. LyX can use Qt to implement something for D-Bus. I don’t know how to setup the Unix-PDF-viewers to synctex with D-Bus and how to change LyX to support this. But this is definitiv not a step to make IPC with LyX less platform dependent. :) > ATM, each call to lyxeditor selects the pipe with higher version. > (I know, this is not the case yet, as you do not have multiple instances > of lyx installed, but it would be possible) 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. Stephan > Anyway, you are the expert here, so I have to knuckle under :) > BTW, thanks to looking into it. > > Kornel > -- > lyx-devel mailing list > lyx-devel@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-devel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel