I´ve been running xbmc/kodi/osmc on the rpi for a few years. Did have a extensive night configuring it in 2013 or 14, and I´ve kept the config while moving between releases – and hardware. I´m now up to the rpi2, and is really pleased.
However, after the sd-card on my rpi2 died, and with no backup of the config I found my self back at square one.
I decided to do it a bit diffrently this time, and to make sure I won´t loose the config again, i´m putting it online.
XBMC.ActivateWindow(Home) noop ContextMenu Info FullScreen Back XBMC.ActivateWindow(Home) XBMC.Restart() XBMC.ActivateWindow(Home) ContextMenu Info FullScreen Back XBMC.ActivateWindow(Home) CodecInfo SubtitleAlign XBMC.ActivateWindow(subtitlesearch) NextSubtitle FullScreen Back RunScript(/home/osmc/.kodi/userdata/stopandmain.py) Seek(-10) Seek(10) Seek(30) Seek(-30) PreviousMenu BackSpace Info Info CodecInfo Info CodecInfo Info CodecInfo Info CodecInfo noop Back noop noop noop Back
when hitting the exit-button while in fullscreen, the pythonscript stopandmain.py is called stopping the playback and returing to the main menu.
#!/usr/bin/python import xbmc import xbmcgui xbmc.executebuiltin("Action(Stop)") xbmc.executebuiltin( "XBMC.ActivateWindow(Home)" )