2015-12-07, 23:38
(2015-12-07, 23:36)JaccoH Wrote: @fritsch
I actually think your script isn't what we need .
Code:#!/bin/bash
OUTPUT=`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'`
xrandr -display :0 --output $OUTPUT --set "Broadcast RGB" "Full"
while true; do
/usr/bin/kodi --standalone
#break while-loop if exit was clean, otherwise restart kodi
if [ $? -eq 0 ]; then
break
fi
done
#give exit code to systemd
exit $?
I assume systemd needs the exit-code?
Won't hurt. It was more of a manual hack - that way you can exit kodi - use openbox and when it would crash it would get restarted by openbox.