# HG changeset patch # User Dirk Olmes # Date 1411697377 -7200 # Node ID 88b0f704e2abed8c6016b04a865a507883f72cf6 # Parent 3190c60927e54ad2029f260a5c73b49722d2d0a8 use settings from the connection object when connecting to via RDP diff -r 3190c60927e5 -r 88b0f704e2ab RemoteViewer/Viewer.py --- a/RemoteViewer/Viewer.py Fri Sep 26 03:35:49 2014 +0200 +++ b/RemoteViewer/Viewer.py Fri Sep 26 04:09:37 2014 +0200 @@ -44,8 +44,14 @@ class FreeRdp(AbstractViewer): def buildCommand(self): - command = ['xfreerdp', '/v:' + self.connection.host] - user = self.connection.user - if user is not None: - command.append('/u:' + user) - return command + self.command = ['xfreerdp', '+clipboard' ] + self.append('/v:', self.connection.host) + self.append('/t:', self.connection.displayString()) + self.append('/u:', self.connection.user) + self.append('/size:', self.connection.geometry) + print(self.command) + return self.command + + def append(self, option, value): + if value is not None: + self.command.append(option + value)