diff options
Diffstat (limited to 'evewinetricks')
-rw-r--r-- | evewinetricks | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/evewinetricks b/evewinetricks index 3cda255841c0..6a6141e67b08 100644 --- a/evewinetricks +++ b/evewinetricks @@ -1,15 +1,20 @@ #!/bin/sh EVECONF=$HOME/.config/CCP/EVE.conf -EVEDIR=$HOME/.local/lib/EVE - UCW=$(grep UseCustomWine $EVECONF | cut -d= -f2) if [ "x$UCW" = "xtrue" ] ;then - WINEPATH=$(grep CustomWinePath $EVECONF | cut -d= -f2) + CUSTOMWP=$(grep CustomWinePath $EVECONF | cut -d= -f2) + WINEPATH=${CUSTOMWP%/*} + SHAREDIR=$(grep SharedCacheFolder $EVECONF | cut -d= -f2) + WINEPREFIX=${SHAREDIR}wineenv else - echo "$(basename $0): Error: Custom wine not set!" + echo "$(basename $0): ERROR: \"Use Custom Wine\" not set!" + exit 1 +fi +if [ ! -x "$WINEPATH/wine" ] ;then + echo "$(basename $0): ERROR: \"$CUSTOMWP\" in \"Custom Wine path\" not found!" exit 1 fi -env WINEPREFIX=$HOME/.local/lib/EVE/SharedCache/wineenv \ - WINE=$WINEPATH $(which winetricks) "$@" +env WINEPREFIX=$WINEPREFIX \ + WINE=$WINEPATH/wine $(which winetricks) "$@" |