mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-17 09:31:37 +08:00
fix: 超时错误
This commit is contained in:
@@ -1128,11 +1128,11 @@ void Widget::on_pushButton_uninstall_clicked()
|
||||
|
||||
QProcess uninstall;
|
||||
uninstall.start("pkexec", QStringList() << "apt" << "purge" << "-y" << pkgName.toLower());
|
||||
uninstall.waitForFinished();
|
||||
uninstall.waitForFinished(180); // 默认超时 3 分钟
|
||||
|
||||
QProcess check;
|
||||
check.start("dpkg", QStringList() << "-s" << pkgName.toLower());
|
||||
check.waitForFinished();
|
||||
check.waitForFinished(180); // 默认超时 3 分钟
|
||||
|
||||
if (check.readAllStandardOutput().isEmpty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user