summarylogtreecommitdiffstats
path: root/evelauncher.sh.real.patch
blob: 65aeb7e57a7dcdb39e1868ea7a0f211b8c58a57d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/evelauncher.sh.real b/evelauncher.sh.real
--- a/evelauncher.sh.real
+++ b/evelauncher.sh.real
@@ -12,4 +12,14 @@ fi
 LD_LIBRARY_PATH="$dirname:$LD_LIBRARY_PATH"
 export LD_LIBRARY_PATH
 
-"$dirname/$appname" "$@"
+"$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
+	kill $(lsof -t -u $(whoami) -a -c /evelauncher$/)
+fi