mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-04 09:32:21 +08:00
回退 'Pull Request !344 : 修复无法弹出ACE提示的问题'
This commit is contained in:
parent
b586695b85
commit
7a4fbabcda
@ -177,12 +177,13 @@ void DownloadItem::slotAsyncInstall(int t)
|
||||
case 0:
|
||||
{
|
||||
QStringList args;
|
||||
args << "/tmp/spark-store/" + ui->label_filename->text().toUtf8();
|
||||
args << "/usr/local/bin/ssinstall"
|
||||
<< "/tmp/spark-store/" + ui->label_filename->text().toUtf8();
|
||||
if (!installExtraArg.isEmpty()) {
|
||||
args << installExtraArg;
|
||||
}
|
||||
args << "--delete-after-install";
|
||||
installer.start("/usr/local/bin/ssinstall", args);
|
||||
installer.start("pkexec", args);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
|
@ -128,8 +128,9 @@ function parse_args() {
|
||||
# 验证当前用户
|
||||
function validate_user() {
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
pkexec DISPLAY=$DISPLAY "$0" "$@"
|
||||
exit $?
|
||||
echo "${TRANSHELL_CONTENT_PLEASE_RUN_AS_ROOT}"
|
||||
echo "OMG-IT-GOES-WRONG"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user