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