Fix black screen with Qt app in Docker container

Fix #556
This commit is contained in:
Julien Duponchelle committed 2016-06-15 11:01:03 +02:00
1 parent e82862c69f
commit bb0db7846f
2 files changed
+2

No files matched your search

+1
View File
@@ -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/")
+1
View File
@@ -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"],