Fixed smartcard parameter when empty

This commit is contained in:
Adolfo Gómez García 2017-12-19 13:52:20 +01:00
parent 9cfc348ee6
commit 442b78ef2e
2 changed files with 7 additions and 4 deletions

View File

@ -10,6 +10,6 @@ Package: udsclient
Section: admin
Priority: optional
Architecture: all
Depends: python-paramiko (>=0.8.2), python-qt4 (>=4.9), python-six(>=1.1), python (>=2.7), rdesktop | freerdp-x11, desktop-file-utils, ${misc:Depends}
Depends: python-paramiko (>=0.8.2), python-qt4 (>=4.9), python-six(>=1.1), python (>=2.7), freerdp-x11 | rdesktop, desktop-file-utils, ${misc:Depends}
Description: Client connector for Universal Desktop Services (UDS) Broker
This package provides the required components to allow this machine to connect to services provided by UDS Broker.

View File

@ -39,7 +39,7 @@ from uds.core.util import OsDetector
import six
import shlex
__updated__ = '2017-12-18'
__updated__ = '2017-12-19'
class RDPFile(object):
@ -100,8 +100,11 @@ class RDPFile(object):
if self.enableClipboard:
params.append('/clipboard')
if self.redirectSmartcards and self.smartcardString not in (None, ''):
params.append('/smartcard:{}'.format(self.smartcardString))
if self.redirectSmartcards:
if self.smartcardString not in (None, ''):
params.append('/smartcard:{}'.format(self.smartcardString))
else:
params.append('/smartcard')
if self.redirectAudio:
if self.alsa: