pid test 7

This commit is contained in:
Désiré Werner Menrath 2023-11-11 19:05:06 +01:00
parent 5b0fc17c92
commit 458c488450

15
wire_g
View File

@ -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