blob: 77b47f06580ac9fe24de81d3300b5b13c959c2f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
EVECONF=$HOME/.config/CCP/EVE.conf
UCW=$(grep UseCustomWine $EVECONF | cut -d= -f2)
if [ "x$UCW" = "xtrue" ] ;then
CUSTOMWP=$(grep CustomWinePath $EVECONF | cut -d= -f2)
WINEPATH=${CUSTOMWP%/*}
SHAREDIR=$(grep SharedCacheFolder $EVECONF | cut -d= -f2)
WINEPREFIX=${SHAREDIR}wineenv
else
echo "$(basename $0): ERROR: \"Use Custom Wine\" not set!"
exit 1
fi
if [ ! -x "$WINEPATH/wine" ] ;then
echo "$(basename $0): ERROR: \"$CUSTOMWP\" from \"Custom Wine path\" not found!"
echo "$(basename $0): The full path are required (example: /usr/bin/wine)."
exit 1
fi
if [ -x "$WINEPATH/${0#*eve}" ] ;then
WINECMD=$WINEPATH/${0#*eve}
else
WINECMD=$CUSTOMWP\ ${0#*eve}
fi
env WINEPREFIX=$WINEPREFIX \
WINEDEBUG=-all \
WINEDLLOVERRIDES="mscoree,mshtml,winemenubuilder.exe=d" \
$WINECMD "$@"
|