# HG changeset patch # User Dirk Olmes # Date 1411698818 -7200 # Node ID 9d7245e4537933faa0ba6d510fee20036db37b4e # Parent 8f93457656b4195c199de89480e68641ec8ca691 update command invocation for VNC diff -r 8f93457656b4 -r 9d7245e45379 RemoteViewer/Viewer.py --- 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):