Skip to content

Commit

Permalink
fix killing old gui window
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed Jul 7, 2023
1 parent 1b5d410 commit e30823b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui
Original file line number Diff line number Diff line change
Expand Up @@ -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")")"
Expand Down

0 comments on commit e30823b

Please sign in to comment.