Fix black screen with Qt app in Docker container

Fix #556
pull/584/head
Julien Duponchelle 8 years ago
parent e82862c69f
commit bb0db7846f
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -302,6 +302,7 @@ class DockerVM(BaseVM):
if self._console_type == "vnc":
yield from self._start_vnc()
params["Env"].append("QT_GRAPHICSSYSTEM=native") # To fix a Qt issue: https://github.com/GNS3/gns3-server/issues/556
params["Env"].append("DISPLAY=:{}".format(self._display))
params["HostConfig"]["Binds"].append("/tmp/.X11-unix/:/tmp/.X11-unix/")

@ -189,6 +189,7 @@ def test_create_vnc(loop, project, manager):
"container=docker",
"GNS3_MAX_ETHERNET=eth0",
"GNS3_VOLUMES=/etc/network",
"QT_GRAPHICSSYSTEM=native",
"DISPLAY=:42"
],
"Entrypoint": ["/gns3/init.sh"],

Loading…
Cancel
Save