changeset 24:9d7245e45379

update command invocation for VNC
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 26 Sep 2014 04:33:38 +0200
parents 8f93457656b4
children 2e5a12e3598e
files RemoteViewer/Viewer.py
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/RemoteViewer/Viewer.py	Fri Sep 26 04:18:23 2014 +0200
+++ b/RemoteViewer/Viewer.py	Fri Sep 26 04:33:38 2014 +0200
@@ -42,7 +42,15 @@
 
 class VncViewer(AbstractViewer):
     def buildCommand(self):
-        return ['vncviewer',  self.connection.host]
+        self.command = ['vncviewer']
+        self.append('-geometry', self.connection.geometry)
+        self.append('-DesktopSize', self.connection.geometry)
+        self.command.append(self.connection.host)
+
+    def append(self, option, value):
+        if value is not None:
+            self.command.append(option)
+            self.command.append(value)
 
 class FreeRdp(AbstractViewer):
     def buildCommand(self):