From 89b812e6a696d78cae32107ec2e22f52047a8ab1 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sun, 28 May 2023 21:01:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E4=B8=BAxfreerdp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mainwindow.py b/mainwindow.py index 9d0c475..b0f991f 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -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: