forked from qt-creator/qt-creator
qdb: set working directory for the qdb server process
Use the binary's directory as the working directory for the qdb watcher process so that users current working directory is not blocked by it. Fixes: QTCREATORBUG-31976 Change-Id: I316f36ddc85d29aa4baeb64b06104437111f36cc Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -117,7 +117,7 @@ void QdbWatcher::forkHostServer()
|
||||
showMessage(message, true);
|
||||
return;
|
||||
}
|
||||
if (Utils::Process::startDetached({qdbFilePath, {"server"}}))
|
||||
if (Utils::Process::startDetached({qdbFilePath, {"server"}}, qdbFilePath.parentDir()))
|
||||
showMessage(Tr::tr("QDB host server started."), false);
|
||||
else
|
||||
showMessage(
|
||||
|
Reference in New Issue
Block a user