Hello OSMC users. First of all, I’d like to open with some transparency, as this topic is currently also running in the old forums under topic: OSMC Forums
With that being said, and knowing this forum is really mainly help with feature-breaking bugs, I feel it’s worth a shot to see what we can get figured out.
I am currently running OSMC RC, Limelight Embedded 1.2.1, Java SE Development Kit 8 Update 33 for ARM, and am using 3 scripts (defined below) to attempt to incorporate a direct link to launch Limelight (thus far attempted both through a python script and an executable shell script via Advanced Launcher).
limelight.py
#!/usr/bin/python
import subprocess
subprocess.call(‘sudo sh /home/osmc/limelight/limelight.sh &’, shell=True)
limelight.sh
#!/bin/sh
sudo systemctl stop mediacenter &
sudo sh /home/osmc/limelight/stream.sh &
stream.sh
#!/bin/sh
sudo java -jar /home/osmc/limelight/limelight.jar stream 192.168.x.x
sudo systemctl start mediacenter
snd-bcm has been loaded into /etc/modules
When I launch the python script from file manager (or the limelight.sh script using advanced launcher), my rig with the nvidia game stream doesn’t respond in any way. Steam is not launched, and the stream does not start. To test to see if my coding was off, I ran the sh script via SSH and everything runs smoothly, mediacenter quits, the stream launches. Upon exiting the stream, mediacenter reopens.
When changing the above stream.sh file to the following, this actually initiates a pair with my streaming rig without a problem.
stream.sh stripped
#!/bin/sh
sudo java -jar /home/osmc/limelight/limelight.jar pair 192.168.x.x
sudo systemctl start mediacenter
It would seem something is preventing the stream argument from running when done through the Kodi GUI. Skipping anything to do with stopping the media center and simply running the above stream.sh file directly through advanced launcher will initiate a pair as well, but when changed back to the stream argument, it does not launch a stream.
Anybody know of anything in particular that may be preventing the stream argument being being run via a python or executable shell script through the GUI? Again, all scripts that will not launch the stream argument through Kodi’s GUI work perfect when attempted through SSH remotely.