Kodi Community Forum

Full Version: System.Exec
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
don't post logs on the forum
oh sorry I forgot to read the forum rules