Update 'killwine.sh'

This commit is contained in:
sam.hadow 2023-05-23 02:40:10 +02:00
parent b8dc68524a
commit 2ad7ef62df

View File

@ -1,7 +1,10 @@
#!/bin/bash #!/bin/bash
#kill wineserver #terminate wineserver
wineserver -k; wineserver -k;
killall -9 wine wineserver;
#kill every exe process #kill every exe process
for i in `ps ax|grep -E "\.exe"|awk '{print $1 }'`;do kill -9 $i;done; for i in `ps ax|grep -E "\.exe"|awk '{print $1 }'`;do kill -9 $i;done;
#kill wineserver if it didn't terminate
#(might corrupt Wine's registry if wineserver was still running)
sleep 1
killall -9 wine wineserver;
echo 'killed wine' echo 'killed wine'