summarylogtreecommitdiffstats
path: root/evelauncher.sh.real
blob: b303c2713d1ce29c3e02cca93a56cdc52c4e0ca2 (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

appname=`basename "$0" | sed s,\.sh$,,`

dirname=`dirname "$0"`
tmp="${dirname#?}"

if [ "${dirname%$tmp}" != "/" ] ;then
dirname="$PWD/$dirname"
fi

LD_LIBRARY_PATH="$dirname:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

"$dirname/$appname" "$@" &

if [ -x "$(which lsof)" ] ;then
sleep 10
until [ "$(lsof -t -u $(whoami) -a -c /evelauncher$/ -- \
 $HOME/.local/share/CCP/EVE/QtWebEngine/Default/IndexedDB/https_launcher.eveonline.com_0.indexeddb.leveldb/LOCK)" = "" ]
do sleep 10 ;done
/usr/bin/kill -s TERM evelauncher
fi