ProjectExplorer/RemoteLinux: Consolidate X11ForwardingAspect handling

Change-Id: I7e74f58ab50c84c74ba65f9f64aaa4d0ea73bbb6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2023-06-20 09:27:47 +02:00
parent 6836caa14c
commit 691c8148a3
5 changed files with 2 additions and 17 deletions

View File

@@ -403,6 +403,8 @@ Runnable RunConfiguration::runnable() const
r.workingDirectory = r.command.executable().withNewMappedPath(workingDirectoryAspect->workingDirectory());
if (auto environmentAspect = aspect<EnvironmentAspect>())
r.environment = environmentAspect->environment();
if (auto forwardingAspect = aspect<X11ForwardingAspect>())
r.extraData.insert("Ssh.X11ForwardToDisplay", forwardingAspect->display());
if (m_runnableModifier)
m_runnableModifier(r);
return r;