Docker: Fix handling of ui applications on macOS

Using graphical applications inside a docker image needs
the same handling on macOS as on Windows.

Change-Id: Ic9fb6a8330164f7acdaab4146a70e7e308192f4e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2022-02-02 10:53:36 +01:00
parent 748cc38c26
commit eb2fc79a3f

View File

@@ -823,8 +823,8 @@ static QString getLocalIPv4Address()
void DockerDevicePrivate::startContainer()
{
const QString display = HostOsInfo::isWindowsHost() ? QString(getLocalIPv4Address() + ":0.0")
: QString(":0");
const QString display = HostOsInfo::isLinuxHost() ? QString(":0")
: QString(getLocalIPv4Address() + ":0.0");
CommandLine dockerCreate{"docker", {"create",
"-i",
"--rm",