Linux System.Exec
#1
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
Reply
#2
don't post logs on the forum
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
oh sorry I forgot to read the forum rules
Reply

Logout Mark Read Team Forum Stats Members Help
System.Exec0