dbldown768
2009-03-07, 18:15
I am using irexec to stop and start xbmc in case of a lockup or crash. irexec is started using my home name of 'xbmc' as shown below
su -c '/usr/bin/irexec -d /home/xbmc/.lircrc' -l xbmc
From what I understand, when i start a script from irexec it is under the user 'xbmc' and should be granted the same permissions as if I logged into a console window and typed the command in. However, when i start xbmc using the irexec, my laucher application cannot open the settings available to it. If i login over vnc and start xbmc, it is able to open any available python scripts. There must be some permission problem somewhere?
here is what is in the xbmc.log file:
http://pastebin.com/m2d3bfc59
Here is my .lircrc script:
# LiveTv
begin
prog = irexec
button = LiveTv
config = /home/xbmc/scripts/startStop.sh
end
# RecordedTv
begin
prog = irexec
button = RecTV
config = /home/xbmc/scripts/reboot.sh
end
this is my startStop.sh:
#!/bin/bash
PROCESS=`ps -ef | grep xbmc.bin | grep -v grep`
if [ "$PROCESS" = "" ]
then
rm -f /home/xbmc/core*
DISPLAY=:0 /usr/local/bin/xbmc &
else
killall -v -s9 xbmc.bin
fi
And all my laucher is trying to access is a wake on lan script that will startup my remote pc that hosts my video media files.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<launchers>
<launcher>
<name>Wake XPS</name>
<application>/home/xbmc/wol/bin/wol</application>
<args>-p=7 -f=/home/xbmc/wol/bin/list.txt 2> /home/xbmc/wol.log</args>
<rompath></rompath>
<romext></romext>
<thumb></thumb>
<wait>true</wait>
<roms>
</roms>
</launcher>
</launchers>
su -c '/usr/bin/irexec -d /home/xbmc/.lircrc' -l xbmc
From what I understand, when i start a script from irexec it is under the user 'xbmc' and should be granted the same permissions as if I logged into a console window and typed the command in. However, when i start xbmc using the irexec, my laucher application cannot open the settings available to it. If i login over vnc and start xbmc, it is able to open any available python scripts. There must be some permission problem somewhere?
here is what is in the xbmc.log file:
http://pastebin.com/m2d3bfc59
Here is my .lircrc script:
# LiveTv
begin
prog = irexec
button = LiveTv
config = /home/xbmc/scripts/startStop.sh
end
# RecordedTv
begin
prog = irexec
button = RecTV
config = /home/xbmc/scripts/reboot.sh
end
this is my startStop.sh:
#!/bin/bash
PROCESS=`ps -ef | grep xbmc.bin | grep -v grep`
if [ "$PROCESS" = "" ]
then
rm -f /home/xbmc/core*
DISPLAY=:0 /usr/local/bin/xbmc &
else
killall -v -s9 xbmc.bin
fi
And all my laucher is trying to access is a wake on lan script that will startup my remote pc that hosts my video media files.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<launchers>
<launcher>
<name>Wake XPS</name>
<application>/home/xbmc/wol/bin/wol</application>
<args>-p=7 -f=/home/xbmc/wol/bin/list.txt 2> /home/xbmc/wol.log</args>
<rompath></rompath>
<romext></romext>
<thumb></thumb>
<wait>true</wait>
<roms>
</roms>
</launcher>
</launchers>