kodi: Clean Kodi view cache on startup

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2016-03-20 10:59:48 +01:00 committed by Lukas Rusak
parent 772ef6da13
commit 0dadc2ff1b

View File

@ -42,6 +42,13 @@ if [ ! -f $HOME/.kodi/userdata/guisettings.xml ] ; then
fi
fi
# cleanup *.fi cache files from .kodi/temp as old version
# of these files can cause random problems/crashes, particularly
# after an upgrade
if [ -d $HOME/.kodi/temp ]; then
rm -f $HOME/.kodi/temp/*.fi
fi
if [ -e /run/lirc/lircd.irtrans ]; then
KODI_ARGS="--lircdev /run/lirc/lircd.irtrans"
else