forked from qt-creator/qt-creator
QmlProject: Set environment when creating a runnable
Task-number: QTCREATORBUG-16126 Change-Id: Id7f88f38e3f9e857acfabbf57001e29115f58507 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -67,6 +67,7 @@ Runnable QmlProjectRunConfiguration::runnable() const
|
|||||||
r.executable = executable();
|
r.executable = executable();
|
||||||
r.commandLineArguments = commandLineArguments();
|
r.commandLineArguments = commandLineArguments();
|
||||||
r.runMode = ApplicationLauncher::Gui;
|
r.runMode = ApplicationLauncher::Gui;
|
||||||
|
r.environment = extraAspect<QmlProjectEnvironmentAspect>()->environment();
|
||||||
r.workingDirectory = canonicalCapsPath(target()->project()->projectFilePath()
|
r.workingDirectory = canonicalCapsPath(target()->project()->projectFilePath()
|
||||||
.toFileInfo().absolutePath());
|
.toFileInfo().absolutePath());
|
||||||
return r;
|
return r;
|
||||||
|
|||||||
Reference in New Issue
Block a user