diff --git a/data/AppRun_wine b/data/AppRun_wine index 5819b2c..cf07f35 100755 --- a/data/AppRun_wine +++ b/data/AppRun_wine @@ -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" $@