diff --git a/killwine.sh b/killwine.sh index 7e1544b..b77011c 100644 --- a/killwine.sh +++ b/killwine.sh @@ -1,7 +1,10 @@ #!/bin/bash -#kill wineserver +#terminate wineserver wineserver -k; -killall -9 wine wineserver; #kill every exe process 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'