forked from qt-creator/qt-creator
Terminal: Fix base Environment
Change-Id: I509333df419f88b922dd69a4ee6484f2c809c31d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
This commit is contained in:
@@ -146,8 +146,8 @@ void TerminalWidget::setupPty()
|
||||
TerminalSettings::instance().shellArguments.value(),
|
||||
CommandLine::Raw});
|
||||
|
||||
Environment env = m_openParameters.environment.value_or(
|
||||
shellCommand.executable().deviceEnvironment());
|
||||
Environment env = m_openParameters.environment.value_or(Environment{})
|
||||
.appliedToEnvironment(shellCommand.executable().deviceEnvironment());
|
||||
|
||||
// For git bash on Windows
|
||||
env.prependOrSetPath(shellCommand.executable().parentDir());
|
||||
|
||||
Reference in New Issue
Block a user