mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-19 00:32:21 +08:00
update src/widget.cpp.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
parent
4d7e766d75
commit
8c08b7e995
@ -1128,7 +1128,7 @@ void Widget::on_pushButton_uninstall_clicked()
|
|||||||
|
|
||||||
QProcess uninstall;
|
QProcess uninstall;
|
||||||
uninstall.start("pkexec", QStringList() << "apt" << "purge" << "-y" << pkgName.toLower());
|
uninstall.start("pkexec", QStringList() << "apt" << "purge" << "-y" << pkgName.toLower());
|
||||||
uninstall.waitForFinished(180); // 默认超时 3 分钟
|
uninstall.waitForFinished(-1); // 默认无限时长
|
||||||
|
|
||||||
QProcess check;
|
QProcess check;
|
||||||
check.start("dpkg", QStringList() << "-s" << pkgName.toLower());
|
check.start("dpkg", QStringList() << "-s" << pkgName.toLower());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user