From 22a54cd0eda895bcc864af802b1892af34787f95 Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 24 May 2023 05:09:00 +0000 Subject: [PATCH] =?UTF-8?q?=E5=B9=B8=E4=BA=8F=E4=B8=80=E7=9B=B4=E6=B2=A1?= =?UTF-8?q?=E7=94=A8=E5=88=B0=E8=BF=99=E4=B8=AA=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shenmo --- tool/ssinstall | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tool/ssinstall b/tool/ssinstall index 0fe7e1c..94010f6 100755 --- a/tool/ssinstall +++ b/tool/ssinstall @@ -19,6 +19,8 @@ echo "Spark Store Install script.星火商店安装脚本" 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 local uid=$(id -u $user)