From aafded8d33a8a06635aa217b532de8b175ebed9c Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Thu, 9 Jan 2025 12:23:20 +0200 Subject: [PATCH] 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 --- src/plugins/boot2qt/device-detection/qdbwatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/boot2qt/device-detection/qdbwatcher.cpp b/src/plugins/boot2qt/device-detection/qdbwatcher.cpp index f7e2f8bdc68..d3514fbc5bd 100644 --- a/src/plugins/boot2qt/device-detection/qdbwatcher.cpp +++ b/src/plugins/boot2qt/device-detection/qdbwatcher.cpp @@ -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(