mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-18 09:02:21 +08:00
fixup! I6JSL5
This commit is contained in:
parent
30cdeb89b1
commit
ef41110632
@ -172,16 +172,19 @@ void DownloadItem::on_pushButton_3_clicked()
|
|||||||
void DownloadItem::slotAsyncInstall(int t)
|
void DownloadItem::slotAsyncInstall(int t)
|
||||||
{
|
{
|
||||||
QProcess installer;
|
QProcess installer;
|
||||||
switch(t)
|
switch (t)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
installer.start("pkexec", QStringList() << "ssinstall" << "/tmp/spark-store/" + ui->label_filename->text().toUtf8() + "--delete-after-install");
|
installer.start("pkexec", QStringList() << "ssinstall"
|
||||||
|
<< "/tmp/spark-store/" + ui->label_filename->text().toUtf8() << "--delete-after-install");
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
installer.start("deepin-deb-installer", QStringList() << "/tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
installer.start("deepin-deb-installer", QStringList() << "/tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
installer.start("pkexec", QStringList() << "gdebi" << "-n" << "/tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
installer.start("pkexec", QStringList() << "gdebi"
|
||||||
|
<< "-n"
|
||||||
|
<< "/tmp/spark-store/" + ui->label_filename->text().toUtf8());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user