Kodi Community Forum
Linux System.Exec - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Confluence (https://forum.kodi.tv/forumdisplay.php?fid=125)
+---- Thread: Linux System.Exec (/showthread.php?tid=173400)



System.Exec - herbert74 - 2013-09-13

Hey

I want to run Shell Comands with System.Exec. I use xbmc-standalone on Kubuntu 12.04. I changed the DialogButtonMenu.xml for the Shutdown Button like this:

Code:
<control type="button" id="3">
                <description>Shutdown button</description>
                <width>340</width>
                <height>40</height>
                <textcolor>grey</textcolor>
                <focusedcolor>white</focusedcolor>
                <align>center</align>
                <textwidth>290</textwidth>
                <texturefocus border="25,5,25,5">ShutdownButtonFocus.png</texturefocus>
                <texturenofocus border="25,5,25,5">ShutdownButtonNoFocus.png</texturenofocus>
                <onclick>XBMC.Quit()</onclick>
                <onclick>System.Exec(mkdir /home/xbmc/exit)</onclick>
                <visible>System.CanPowerDown</visible>
                <pulseonselect>yes</pulseonselect>
                <font>font13</font>
                <label>13016</label>
            </control>

Just the line which contains System.Exec.... is added by me. Unfortuanetely it doesn't works. Do I have to include something more ? Thanks for your help.

Here is the logfile


RE: System.Exec - Martijn - 2013-09-13

don't post logs on the forum


RE: System.Exec - herbert74 - 2013-09-13

oh sorry I forgot to read the forum rules