Kodi Community Forum
why does xbmc close/hang when i assign a button in remote.xml to a shellscript - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: why does xbmc close/hang when i assign a button in remote.xml to a shellscript (/showthread.php?tid=116281)



why does xbmc close/hang when i assign a button in remote.xml to a shellscript - john.doe - 2011-12-06

i altered this file: /usr/share/xbmc/system/keymaps/remote.xml
and added a line to the glaobal section:

<four>System.Exec(sispmctl -o 2)</four>

it should run a shell command (i am on linux) but instead xbmc switches to windowed mode and is unnresponsible.
any thoughts?


- mkortstiege - 2011-12-06

You should use a python script to run the system command. System.Exec and System.ExecWait will minimize XBMC.


- john.doe - 2011-12-09

thank you very much