use GNS3 node name as vnc Desktop name

Most VNC clients use the Desktop name in their window title.
Currently this defaults to user@host which means all docker vnc
connections have identical window names of e.g.
  SSVNC: gns3@gns3server

This uses the node name instead.
This commit is contained in:
Thomas Schmidt 2025-05-22 13:13:47 +02:00
parent 975ca254fd
commit a7108e1592

View File

@ -745,6 +745,7 @@ class DockerVM(BaseNode):
"-rfbport", str(self.console),
"-AlwaysShared",
"-SecurityTypes", "None",
"-desktop", self.name,
":{}".format(self._display),
stdout=fd, stderr=subprocess.STDOUT)