blob: 4bb6b3cc176cf1f7545e476a5434d2712cd53519 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/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
env WINEPREFIX=$WINEPREFIX \
WINEDEBUG=-all \
WINEDLLOVERRIDES="mscoree,mshtml,winemenubuilder.exe=d" \
$WINEPATH/${0#*eve} "$@"
|