forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user