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:
Samuli Piippo
2025-01-09 12:23:20 +02:00
parent 21fe3e1074
commit aafded8d33

View File

@@ -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(