更换为xfreerdp

This commit is contained in:
gfdgd xi 2023-05-28 21:01:35 +08:00
parent 803eb09b5a
commit 89b812e6a6

View File

@ -1893,11 +1893,11 @@ def ChangePath():
e1.setCurrentText(f'{setting["DefultBotton"]}/{os.path.splitext(os.path.basename(e2.currentText()))[0]}')
def ConnectRemoteWindowsPC(ip: str):
if os.system("which rdesktop"):
if QtWidgets.QMessageBox.question(window, "提示", "未检测到 rdesktop是否立即安装") == QtWidgets.QMessageBox.Yes:
OpenTerminal("sudo apt install rdesktop -y")
if os.system("which xfreerdp"):
if QtWidgets.QMessageBox.question(window, "提示", "未检测到 xfreerdp是否立即安装") == QtWidgets.QMessageBox.Yes:
OpenTerminal("sudo apt install xfreerdp -y")
return
os.system(f"rdesktop '{ip}'")
os.system(f"xfreerdp '{ip}'")
def UploadLog():
if QtWidgets.QMessageBox.question(window, "提示", "您确定要上传吗?上传内容将不会公开,将用于加强日志分析功能") == QtWidgets.QMessageBox.Yes: