diff --git a/src/client/client.cpp b/src/client/client.cpp index 0a80107009..02ea67c008 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -460,8 +460,7 @@ int h(vector const &) } -docstring clientName = - from_ascii(to_string(::getppid()) + ">" + to_string(::getpid())); +docstring clientName; int n(vector const & arg) { @@ -710,9 +709,12 @@ int LyXClientApp::run() int main(int argc, char * argv[]) { - lyx::lyxerr.setStream(cerr); + using namespace lyx; + lyxerr.setStream(cerr); + cmdline::clientName = + from_ascii(to_string(::getppid()) + ">" + to_string(::getpid())); - lyx::LyXClientApp app(argc, argv); + LyXClientApp app(argc, argv); return app.exec(); }