2011-01-29, 06:35
Here is the situation, I want to call System.Exec from the ~/Libary/Application Support/XBMC/userdata/keymaps/keymap.xml to execute a shell script. It does not look like it the shell script is getting executed from keymap.xml.
I can execute the shell script from the terminal and it works fine. I also setup the XBMC program Lanucher add-on to execute the shell script, no problem executing the shell script.
I know when the shell script gets executed as I placed the following at the top of the shell script:
When I execute the shell script from the terminal or XBMC program Launcher add-on the a.txt file is written to. But when I attempt to execute the shell script from the keymap.xml a.txt is not written to.
I am doing something incorrectly but I can't seem to see it.
OSX Version 10.6.6
Platform 2008 24" 3.06GHz iMac with 4GB RAM
Install Method dmg
SVN Revision 35648
Skin Transparency!
~/Libary/Application Support/XBMC/userdata/keymaps/keymap.xml
I can execute the shell script from the terminal and it works fine. I also setup the XBMC program Lanucher add-on to execute the shell script, no problem executing the shell script.
I know when the shell script gets executed as I placed the following at the top of the shell script:
Code:
echo Enter >>~/Desktop/a.txt
When I execute the shell script from the terminal or XBMC program Launcher add-on the a.txt file is written to. But when I attempt to execute the shell script from the keymap.xml a.txt is not written to.
I am doing something incorrectly but I can't seem to see it.
OSX Version 10.6.6
Platform 2008 24" 3.06GHz iMac with 4GB RAM
Install Method dmg
SVN Revision 35648
Skin Transparency!
~/Libary/Application Support/XBMC/userdata/keymaps/keymap.xml
Code:
<FullscreenVideo>
<joystick name="AppleRemote">
<button id="1">System.Exec("/Users/mwinestock/Library/Application Support/XBMC/scripts/change_volume.sh" 1)</button>
<button id="2">System.Exec("/Users/mwinestock/Library/Application Support/XBMC/scripts/change_volume.sh" -1)</button>
<button id="3">StepBack</button>
<button id="4">StepForward</button>
<button id="5">Pause</button>
<button id="6">Stop</button>
<button id="7">OSD</button>
<button id="8">Fullscreen</button>
<button id="9">Rewind</button>
<button id="10">FastForward</button>
</joystick>
</FullscreenVideo>