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: