Add default path to server pipe (cmake build + unix)

Actually the change is affecting only builds if
1.) Using cmake build
2.) on unix

To use it on
  cygwin: one has to patch development/cygwin/lyxrc.dist.in
  MacOSX:     -//-         development/MacOSX/lyxrc.dist.in

We need also a Windows-version

Also the compilation with automake lacks the handling of development/unix/lyxrc.dist.in
This commit is contained in:
Kornel Benko 2020-04-17 18:38:51 +02:00
parent 5ec95f703c
commit 689f26d247
2 changed files with 3 additions and 1 deletions

View File

@ -13,4 +13,5 @@
Format 25 Format 25
\texinputs_prefix ".:@LYX_ABS_INSTALLED_DATADIR@tex" \texinputs_prefix ".:@LYX_ABS_INSTALLED_DATADIR@tex"
\serverpipe "$$User/.lyxpipe"

View File

@ -670,7 +670,8 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format)
case RC_SERVERPIPE: case RC_SERVERPIPE:
if (lexrc.next()) if (lexrc.next())
lyxpipes = os::internal_path(lexrc.getString()); lyxpipes = subst(os::internal_path(lexrc.getString()), "$$User",
package().user_support().absFileName());
break; break;
case RC_CT_ADDITIONS_UNDERLINED: case RC_CT_ADDITIONS_UNDERLINED: