update src/pages/appintopage.cpp.

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
shenmo 2024-03-25 03:27:13 +00:00 committed by Gitee
parent b54c797ce5
commit 83540e1c55
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -133,7 +133,7 @@ void AppIntoPage::openUrl(const QUrl &url)
bool isInstalled;
bool isUpdated;
QString packagename = info["Pkgname"].toString();
isInstall.start("dpkg", QStringList() << "-s" << info["Pkgname"].toString());
isInstall.start("/opt/durapps/spark-store/bin/store-helper/check-is-installed", QStringList() << info["Pkgname"].toString());
qDebug() << info["Pkgname"].toString();
isInstall.waitForFinished(180 * 1000); // 默认超时 3 分钟
int error = QString::fromStdString(isInstall.readAllStandardError().toStdString()).length();