有时候会发生Wine应用程序崩溃的情况(导致系统变慢,几乎无法使用)。
在大多数情况下,我可以用"xkill"来终止程序,但有时我不得不重新启动Ubuntu,因为它似乎不太好响应(唯一有效的是ALT+F2,启动器;"xkill"无效)。
我尝试过使用"wineboot -r"或"-f",但它们似乎效果不佳。
如果有什么不清楚的地方,请告诉我,我会尽量解释得更清楚 :)
wineserver -k
wineserver -k9
killall nameofexefile.exe
就像Linux进程一样
wineserver -k
是一种好的方式,也是首选)。#!/bin/bash
wine_cellar="${HOME}/.local/share/wine"
if (($#)); then
if [[ -e "${wine_cellar}/$1" ]]; then
WINEPREFIX="${wine_cellar}/$1"
shift
elif [[ "${1:0:1}" != "-" ]]; then
echo "ERROR: Didn't understand argument '$1'?" >&2;
exit 1
fi
fi
if ((${#WINEPREFIX})); then
pids=$(
grep -l "WINEPREFIX=${WINEPREFIX}$" $(
ls -l /proc/*/exe 2>/dev/null |
grep -E 'wine(64)?-preloader|wineserver' |
perl -pe 's;^.*/proc/(\d+)/exe.*$;/proc/$1/environ;g;'
) 2> /dev/null |
perl -pe 's;^/proc/(\d+)/environ.*$;$1;g;'
)
else
pids=$(
ls -l /proc/*/exe 2>/dev/null |
grep -E 'wine(64)?-preloader|wineserver' |
perl -pe 's;^.*/proc/(\d+)/exe.*$;$1;g;'
)
fi
if ((${#pids})); then
set -x
kill $* $pids
fi
~/.local/share/wine
下。使用示例如下:killwine # Just kill all instances of wine
killwine -9 # Hard kill them all
killwine lotro # Only kill wine under ${HOME}/.local/share/wine/lotro
killwine -INT lotro # Same as above, but use SIGINT
WINEPREFIX=/tmp/crap killwine # Kill only the instance under /tmp/crap
sudo reboot # Pretend you're running windows.
我的版本:
ls -l /proc/*/exe 2>/dev/null | grep -E 'wine(64)?-preloader|wineserver' | perl -pe 's;^.*/proc/(\d+)/exe.*$;$1;g;' | xargs -n 1 kill
ps -x | grep "你的程序名称" | awk '{print $1}' | xargs kill
你的程序名称应该不加引号写入,
它帮助我解决了 oblivion.exe 问题:
ps -x | grep Oblivion | awk '{print $1}' | xargs kill
winedevice.exe
在运行。 - Dan Dascalescu