Utils: Add Extra Data to Terminal process

Allows a terminal to display the "correct" program name.

Fixes: QTCREATORBUG-29281
Change-Id: I73dacf71078dd1407ddda7bbc33a93c5ad172cbf
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-06-14 11:11:20 +02:00
parent 43862f4cd4
commit 79dd731d87
4 changed files with 16 additions and 2 deletions

View File

@@ -49,7 +49,11 @@ public:
if (!terminal) {
terminal = new TerminalWidget(nullptr, openParameters);
terminal->setShellName(setup.m_commandLine.executable().fileName());
terminal->setShellName(
setup.m_extraData
.value(TERMINAL_SHELL_NAME, setup.m_commandLine.executable().fileName())
.toString());
m_terminalPane->addTerminal(terminal, "App");
} else {
terminal->restart(openParameters);