From e30823b2ee2370a6a968543f00ce9788f68b1181 Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Thu, 6 Jul 2023 22:15:52 -0500 Subject: [PATCH] fix killing old gui window --- gui | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui b/gui index eb4cdb2fb7..51f034f7cb 100755 --- a/gui +++ b/gui @@ -21,8 +21,9 @@ fi export GUI_FORMAT_VERSION=2 #Transition from the GUI that calls itself to the self-contained GUI: when called by the old GUI, kill that yad window and treat this subprocess as the new main thread -if [ -z "$1$2" ] && [ ! -z "$3" ] && [ ! -z "$4" ] ;then +if [ -z "$1" ] && [ ! -z "$2" ] && [ ! -z "$3" ] ;then kill $(ps -fC yad | grep "yad --class Pi-Apps --name Pi Apps --center --title=Pi-Apps --image" | awk '{print $2}') + unset YAD_XID #new gui, don't try to get dimensions of the now closed app list fi DIRECTORY="$(readlink -f "$(dirname "$0")")"