Amend(3) 689f26d2: Add default path to server pipe (cmake build)

Omit duplicated separators if replacing string '$$User' with actual userdir
This commit is contained in:
Kornel Benko 2020-04-18 16:32:24 +02:00
parent 88d8376189
commit 237378477f

View File

@ -669,9 +669,13 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format)
break;
case RC_SERVERPIPE:
if (lexrc.next())
if (lexrc.next()) {
string userdir = package().user_support().absFileName();
if (userdir.back() == '/')
userdir = userdir.substr(0, userdir.size()-1);
lyxpipes = subst(os::internal_path(lexrc.getString()), "$$User",
package().user_support().absFileName());
userdir);
}
break;
case RC_CT_ADDITIONS_UNDERLINED: