From 135a78f4c8454f1b3aeeec3da2af1a9d6a32b3d0 Mon Sep 17 00:00:00 2001 From: momen Date: Wed, 2 Jul 2025 15:32:03 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=9B=B4=E6=96=B0=E4=B8=BAaptss=20ssupd?= =?UTF-8?q?ate=E6=9D=A5=E6=9B=B4=E6=96=B0=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e54ce43..dde2a4c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -209,17 +209,17 @@ void MainWindow::runAptssUpgrade() { QProcess process; QStringList args; - args << "aptss" << "upgrade"; + args << "sudo" <<"aptss" << "ssupdate"; process.start("sudo", args); if (!process.waitForStarted(5000)) { - QMessageBox::warning(this, "升级失败", "无法启动 sudo aptss upgrade。"); + QMessageBox::warning(this, "升级失败", "无法启动 sudo aptss ssupdate"); return; } process.write("n\n"); process.closeWriteChannel(); process.waitForFinished(-1); if (process.exitCode() != 0) { - QMessageBox::warning(this, "升级失败", "执行 sudo aptss upgrade 失败,请检查系统环境。"); + QMessageBox::warning(this, "升级失败", "执行 sudo aptss ssupdate 失败,请检查系统环境。"); } }