forked from qt-creator/qt-creator
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:
@@ -823,8 +823,8 @@ static QString getLocalIPv4Address()
|
|||||||
|
|
||||||
void DockerDevicePrivate::startContainer()
|
void DockerDevicePrivate::startContainer()
|
||||||
{
|
{
|
||||||
const QString display = HostOsInfo::isWindowsHost() ? QString(getLocalIPv4Address() + ":0.0")
|
const QString display = HostOsInfo::isLinuxHost() ? QString(":0")
|
||||||
: QString(":0");
|
: QString(getLocalIPv4Address() + ":0.0");
|
||||||
CommandLine dockerCreate{"docker", {"create",
|
CommandLine dockerCreate{"docker", {"create",
|
||||||
"-i",
|
"-i",
|
||||||
"--rm",
|
"--rm",
|
||||||
|
Reference in New Issue
Block a user