修复无法弹出ACE提示的问题

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
2025-06-14 08:20:10 +00:00
committed by Gitee
parent 01bb90879b
commit d5b2d4ddf4
2 changed files with 4 additions and 6 deletions

View File

@@ -128,9 +128,8 @@ function parse_args() {
# 验证当前用户
function validate_user() {
if [ "$(id -u)" != "0" ]; then
echo "${TRANSHELL_CONTENT_PLEASE_RUN_AS_ROOT}"
echo "OMG-IT-GOES-WRONG"
exit 1
pkexec DISPLAY=$DISPLAY "$0" "$@"
exit $?
fi
}