幸亏一直没用到这个函数

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
2023-05-24 05:09:00 +00:00
committed by Gitee
parent d4fbd1b386
commit 22a54cd0ed

View File

@@ -19,6 +19,8 @@ echo "Spark Store Install script.星火商店安装脚本"
function pkexec_as_current_user() { function pkexec_as_current_user() {
#Detect the user using such display
local user=$(who | awk '{print $1}' | head -n 1)
#Detect the id of the user #Detect the id of the user
local uid=$(id -u $user) local uid=$(id -u $user)