Allow resetting (removing) the WINEPREFIX
parent
9dfddeb365
commit
ba6fbcd8c0
|
@ -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" $@
|
||||
|
|
Loading…
Reference in New Issue