bug fixing
This commit is contained in:
@@ -115,7 +115,11 @@ class RDPClientQtFactory(rdp.ClientFactory):
|
|||||||
self._nego = security == "nego"
|
self._nego = security == "nego"
|
||||||
self._recodedPath = recodedPath
|
self._recodedPath = recodedPath
|
||||||
if self._nego:
|
if self._nego:
|
||||||
self._security = rdp.SecurityLevel.RDP_LEVEL_NLA
|
#compute start nego nla need credentials
|
||||||
|
if username != "" and password != "":
|
||||||
|
self._security = rdp.SecurityLevel.RDP_LEVEL_NLA
|
||||||
|
else:
|
||||||
|
self._security = rdp.SecurityLevel.RDP_LEVEL_SSL
|
||||||
else:
|
else:
|
||||||
self._security = security
|
self._security = security
|
||||||
self._w = None
|
self._w = None
|
||||||
@@ -190,7 +194,7 @@ def autoDetectKeyboardLayout():
|
|||||||
if os.name == 'posix':
|
if os.name == 'posix':
|
||||||
from subprocess import check_output
|
from subprocess import check_output
|
||||||
result = check_output(["setxkbmap", "-print"])
|
result = check_output(["setxkbmap", "-print"])
|
||||||
if "azerty" in result:
|
if 'azerty' in result:
|
||||||
return "fr"
|
return "fr"
|
||||||
elif os.name == 'nt':
|
elif os.name == 'nt':
|
||||||
import win32api, win32con, win32process
|
import win32api, win32con, win32process
|
||||||
|
|||||||
@@ -56,5 +56,5 @@ def scancodeToChar(code):
|
|||||||
@return: char
|
@return: char
|
||||||
"""
|
"""
|
||||||
if not _SCANCODE_QWERTY_.has_key(code):
|
if not _SCANCODE_QWERTY_.has_key(code):
|
||||||
return "<unknown scancode>"
|
return "<unknown scancode %x>"%code
|
||||||
return _SCANCODE_QWERTY_[code];
|
return _SCANCODE_QWERTY_[code];
|
||||||
Reference in New Issue
Block a user