mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 12:52:04 +08:00
chore:更新调用代码
This commit is contained in:
@@ -529,7 +529,7 @@ void MainWindow::on_pushButton_14_clicked()
|
|||||||
appPath = QCoreApplication::applicationDirPath() ;
|
appPath = QCoreApplication::applicationDirPath() ;
|
||||||
QDir dir(appPath);
|
QDir dir(appPath);
|
||||||
dir.cdUp();
|
dir.cdUp();
|
||||||
appPath = dir.absolutePath();
|
appPath = dir.absolutePath()+"/spark-update-tool/spark-update-tool";
|
||||||
qDebug() << "Spark Update Tool Path: " << appPath;
|
qDebug() << "Spark Update Tool Path: " << appPath;
|
||||||
if(appPath.isEmpty())
|
if(appPath.isEmpty())
|
||||||
{
|
{
|
||||||
@@ -539,6 +539,6 @@ void MainWindow::on_pushButton_14_clicked()
|
|||||||
QProcess *process = new QProcess(this);
|
QProcess *process = new QProcess(this);
|
||||||
QString program = "pkexec";
|
QString program = "pkexec";
|
||||||
QStringList arguments;
|
QStringList arguments;
|
||||||
arguments << appPath << "--silent";
|
arguments << appPath <<"--silent";
|
||||||
process->start(program, arguments);
|
process->start(program, arguments);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user