mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 12:52:04 +08:00
update:已调用更新器
This commit is contained in:
@@ -551,7 +551,7 @@ void MainWindow::on_pushButton_14_clicked()
|
|||||||
// #endif
|
// #endif
|
||||||
appPath = QStandardPaths::findExecutable("spark-update-tool");
|
appPath = QStandardPaths::findExecutable("spark-update-tool");
|
||||||
qDebug() << "Spark Update Tool Path: " << appPath;
|
qDebug() << "Spark Update Tool Path: " << appPath;
|
||||||
QString program = "sudo";
|
QString program = "pkexec";
|
||||||
QStringList arguments;
|
QStringList arguments;
|
||||||
arguments << appPath;
|
arguments << appPath;
|
||||||
QProcess *process = new QProcess(this);
|
QProcess *process = new QProcess(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user