mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 12:52:04 +08:00
chore:测试使用sudo调用
This commit is contained in:
@@ -550,7 +550,8 @@ void MainWindow::on_pushButton_14_clicked()
|
|||||||
// process->start(program, arguments);
|
// process->start(program, arguments);
|
||||||
// #endif
|
// #endif
|
||||||
appPath = QStandardPaths::findExecutable("spark-update-tool");
|
appPath = QStandardPaths::findExecutable("spark-update-tool");
|
||||||
QString program = "pkexec";
|
qDebug() << "Spark Update Tool Path: " << appPath;
|
||||||
|
QString program = "sudo";
|
||||||
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