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:
@@ -537,8 +537,7 @@ void MainWindow::on_pushButton_14_clicked()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QProcess *process = new QProcess(this);
|
QProcess *process = new QProcess(this);
|
||||||
QString program = "pkexec";
|
|
||||||
QStringList arguments;
|
QStringList arguments;
|
||||||
arguments << appPath <<"--silent";
|
arguments << appPath <<"--silent";
|
||||||
process->start(program, arguments);
|
process->start(appPath, {"--silent"});
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user