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

Kornel Benko kornel at lyx.org
Sun Apr 19 06:50:57 UTC 2020


Am Sat, 18 Apr 2020 22:49:18 +0200
schrieb Kornel Benko <kornel at lyx.org>:

> Am Sat, 18 Apr 2020 22:11:36 +0200
> schrieb Stephan Witt <st.witt at gmx.net>:
> 
> > Yes, it’s possible. But not at the same location. /Applications/LyX.app is 2.3 or 2.4
> > but not at the same time. And Skim looks there as I said.
> > 
> > One can change Skim’s preference to look at some other place -
> > but unfortunately there is no automatic solution for this.
> > 
> > It doesn’t matter what version is used. lyxeditor is able to lookup the pipe location
> > to direct the reverse lookup command of Skim to the running LyX instance.  
> 
> What could be done to make lyxeditor independent is:
> Before lyx calls some external program (e.g. Skim), lyx sets an environment variable,
> for instance 'LYX_SERVER_PIPE'. Skim may call lyxeditor, and I suppose, the environment
> is inherited, so that also lyxeditor gets it.
> Instructing lyxeditor to consider it should not be that difficult.
> 
> 	Kornel

We already do similar for lyxclient. See ServerSocket.cpp:68
	setEnv("LYXSOCKET", address_.absFileName());
so we could use "LYXPIPES", see attached

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Server.cpp.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200419/918657a7/attachment.bin>
-------------- 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/918657a7/attachment.asc>


More information about the lyx-devel mailing list