I added a custom menu with two subitems, each runs a shellscript, ie:
System.Exec(/home/osmc/sideon.sh)
where sideon.sh contains:
#!/bin/bash
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