Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › Exiting Kodi to Emulationstation › Reply To: Exiting Kodi to Emulationstation
06/03/2015 at 15:45
#98959
Omnija
Participant
[quote=95972]
#!/bin/bash
LOG_FILE=$HOME/.kodi/temp/kodi.log
rm $LOG_FILE 2> /dev/null
/usr/lib/kodi/kodi.bin –standalone &
while [[ ! -f $LOG_FILE ]] ; do
sleep 1s
done
while read line ; do
if [[ ${line} =~ “application stopped” ]] ; then
echo “Killing kodi”
break
fi
done < <(tail –pid=$$ -f -n0 $LOG_FILE)
killall kodi.bin
fbset -depth 8 && fbset -depth 16
[/quote]
I’ve been using this one for quite some time now, and it seems to help a lot.