I added a custom menu with two subitems, each runs a shellscript, ie:
where sideon.sh contains:
sudo /home/osmc/a.out 1
When I run it from the menu, I just get a black screen. Script runs fine from ssh. Any ideas?
Edit: So System.exec is broken… And here I thought I could end my days without learning Python…
import subprocess subprocess.call(['sudo', '/home/osmc/a.out', '1'])
Yes, I am lazy. will change name from a.out later