#!/bin/sh
#Stop XScreensaver
stop_xss.sh &

#Launch plex
export XBMC_BIN_HOME='/usr/lib/plexhometheater'
export XBMC_HOME='/usr/share/plexhometheater'
exec plexhometheater

#Start Xscreensaver again
killall stop_xss.sh