From 9d3b26ba511cdd6010376396240ed23a22b0581b Mon Sep 17 00:00:00 2001 From: Pakobbix Date: Fri, 20 Jan 2023 00:11:57 +0100 Subject: [PATCH] take only the last active user from open session list --- gui_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui_start.sh b/gui_start.sh index 27af852..165b99b 100755 --- a/gui_start.sh +++ b/gui_start.sh @@ -48,7 +48,7 @@ sudo echo if ! which whiptail >/dev/null; then sudo apt-get install whiptail -y fi -linux_user=$(who | awk '{print $1}') +linux_user=$(w | awk '{print $1}' | tail -n1) { echo 0 sudo apt-get update >/dev/null