blob: 4adaee57ed3b446a2b79dbf6f9985dd567aeb3a3 (
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
# Evelauncher shared functions
desktop_msg() {
if [ -x "$(which notify-send 2>/dev/null)" ] ;then
notify-send -i eve 'EVE Online Launcher' "$@"
fi
echo "$(basename $0): $@"
}
check_custom_wine() {
EVECONF=$HOME/.config/CCP/EVE.conf
CUSTOMWP=$(grep CustomWinePath $EVECONF | cut -d= -f2)
SHAREDIR=$(grep SharedCacheFolder $EVECONF | cut -d= -f2)
UCW=$(grep UseCustomWine $EVECONF | cut -d= -f2)
WINEPREFIX=${SHAREDIR}wineenv
if [ "x$UCW" = "xtrue" ] ;then
WINEPATH=${CUSTOMWP%/*}
else
desktop_msg "INFO: \"Use custom Wine\" not set, using internal version."
CUSTOMWP=${SHAREDIR}wine
WINEPATH=${SHAREDIR}wine/bin
fi
if [ ! -x "$WINEPATH/wine" ] ;then
desktop_msg "ERROR: \"$CUSTOMWP\" from \"Custom Wine path\" not found!"
exit 1
fi
}
|