2023-03-07 19:00:51 +08:00
parent 21bcb67a73
commit 40eadaca35
4 changed files with 13 additions and 1 deletions

View File

@@ -175,7 +175,7 @@ void DownloadItem::slotAsyncInstall(int t)
switch(t)
{
case 0:
installer.start("pkexec", QStringList() << "ssinstall" << "/tmp/spark-store/" + ui->label_filename->text().toUtf8());
installer.start("pkexec", QStringList() << "ssinstall" << "/tmp/spark-store/" + ui->label_filename->text().toUtf8() + "--delete-after-install");
break;
case 1:
installer.start("deepin-deb-installer", QStringList() << "/tmp/spark-store/" + ui->label_filename->text().toUtf8());