Allow resetting (removing) the WINEPREFIX

master
Ismael Barros² 2015-10-25 21:06:24 +01:00
parent 9dfddeb365
commit ba6fbcd8c0
1 changed files with 10 additions and 8 deletions

View File

@ -28,6 +28,16 @@ export WINEARCH="win32"
export WINEDEBUG="-all"
export WINEDLLOVERRIDES="mshtml,mscoree=,winemenubuilder.exe=n"
CONF=
for i in $@; do
case $i in
@conf) CONF=1; shift ;;
@reset) rm -rfv "$WINEPREFIX"; shift ;;
esac
done
if [ ! -d "$WINEPREFIX" ]; then
mkdir -p ~/.cache/winetricks/
if [ "$WINETRICKS" ]; then
@ -54,14 +64,6 @@ if [ ! -d "$WINEPREFIX" ]; then
fi
CONF=
for i in $@; do
case $i in
@conf) CONF=1; shift ;;
esac
done
cd "$WINEPREFIX"
if [ $CONF ]; then
run_withLocalLibs "$APPDIR/usr/bin/winecfg" $@