mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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:
parent
88d8376189
commit
237378477f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user