#!/bin/bash
#Stop XScreensaver
stop_xss.sh &
#Launch kodi
/usr/bin/kodi --lircdev /var/run/lirc/lircd
#Once kodi exits, start XSceensager again
killall stop_xss.sh