From 2ad7ef62dffc47c8704c684b55f41f90e8f447c1 Mon Sep 17 00:00:00 2001 From: "sam.hadow" Date: Tue, 23 May 2023 02:40:10 +0200 Subject: [PATCH] Update 'killwine.sh' --- killwine.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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'