mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-29 14:12:37 +03:00
issue #3307 - Configuration file paths containing spaces don't work
issue solved
This commit is contained in:
parent
23f762a623
commit
ae4d8cee2a
@ -589,7 +589,12 @@ bool MainWindow::serverArgs(QStringList& args, QString& app)
|
||||
args << "--log" << logFilename;
|
||||
}
|
||||
|
||||
args << "-c" << configFilename() << "--address" << address();
|
||||
QString configFilename = this->configFilename();
|
||||
#if defined(Q_OS_WIN)
|
||||
// wrap in quotes in case username contains spaces.
|
||||
configFilename = QString("\"%1\"").arg(configFilename);
|
||||
#endif
|
||||
args << "-c" << configFilename << "--address" << address();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user