aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/terminalinterface.cpp
diff options
context:
space:
mode:
authorMarcus Tillmanns <[email protected]>2025-04-24 08:21:09 +0200
committerMarcus Tillmanns <[email protected]>2025-04-24 10:47:02 +0000
commitea06a8568ea8fd330c4210dcdf13e573c6d7e05d (patch)
treeb00389a9bd20d80619aade41df4084ca7c4bf0da /src/libs/utils/terminalinterface.cpp
parent02778be4cf4465474a27e1f9d33d6370b38bf8f8 (diff)
Utils: Use original environment for process stub
Qt Creator removes the path to the Qt binaries from its environment when its started from another Qt Creator. The process stub needs the PATH though with those, so we set the environment of the stub to be the "originalSystemEnvironment" Amends: e281855dfaacebe0b9127bb15f1e3a207af2544b Change-Id: I7a18a46f3e57eaf463e36839f35c3467ee33e71b Reviewed-by: Christian Kandeler <[email protected]> Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/libs/utils/terminalinterface.cpp')
-rw-r--r--src/libs/utils/terminalinterface.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/utils/terminalinterface.cpp b/src/libs/utils/terminalinterface.cpp
index 1a757089460..7bbc5b8fa75 100644
--- a/src/libs/utils/terminalinterface.cpp
+++ b/src/libs/utils/terminalinterface.cpp
@@ -386,6 +386,7 @@ void TerminalInterface::start()
ProcessSetupData stubSetupData;
stubSetupData.m_commandLine = cmd;
+ stubSetupData.m_environment = Environment::originalSystemEnvironment();
stubSetupData.m_extraData[TERMINAL_SHELL_NAME]
= m_setup.m_extraData.value(TERMINAL_SHELL_NAME,