diff --git a/wire_g b/wire_g index 5a33f36..050937a 100755 --- a/wire_g +++ b/wire_g @@ -61,6 +61,11 @@ wg_notify(){ --menu="Wire-G $open!/sbin/wire_g |$active stop!/sbin/wg_stop" \ --command="menu" + while [[ -z $active ]] + do + kill $pid + done + } export -f wg_notify @@ -146,11 +151,11 @@ remove(){ --text-align=center --button=$"OK" --title "Wire-G Trash" \ --center --buttons-layout=center --borders=8 fi - if [ "$selection" = "$active" ] - then - pkill wire_g - kill "$pid" - fi + # if [ "$selection" = "$active" ] + # then + # pkill wire_g + # kill yad + # fi fi } export -f remove