mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 21:03:54 +08:00
@@ -580,7 +580,13 @@ bool MainWindow::serverArgs(QStringList& args, QString& app)
|
||||
if (appConfig().logToFile())
|
||||
{
|
||||
appConfig().persistLogDir();
|
||||
args << "--log" << appConfig().logFilename();
|
||||
|
||||
QString logFilename = appConfig().logFilename();
|
||||
#if defined(Q_OS_WIN)
|
||||
// wrap in quotes in case username contains spaces.
|
||||
logFilename = QString("\"%1\"").arg(logFilename);
|
||||
#endif
|
||||
args << "--log" << logFilename;
|
||||
}
|
||||
|
||||
args << "-c" << configFilename() << "--address" << address();
|
||||
|
||||
Reference in New Issue
Block a user