I have an small problem.
To manage my home automation I have add some own buttons to the home screen.
The buttons triggers eg. “System.Exec(/home/osmc/sw/floor.sh)”.
On LibreELEC that works fine, but unter OSMC the floor.sh will be triggert and then Kodi stays black untill I restart my vero.
We might have an OSMC bug here. This would affect all platforms. A search for System.Exec on the Kodi forum seems to suggest there are some problems.
See http://kodi.wiki/view/list_of_built-in_functions. You could try RunScript and wrap the call to the bash script with a Python one (a bit ugly, for sure), or even rewrite the script in Python as it’s simple enough.
I’m absolutly not an python expert, so I think it is the python script :x
The PHP Script runs in unter 0,5sec. But trough the python script the request needs arround 2-3secs.
import requests
res = requests.get('http://api.asm.local/sw.php?id=9')
Yes, I took a look at that and believe it’s because they start Kodi differently.
I can replicate this on Ubuntu 16.04. It’s still likely a bug in Kodi however as the version on my laptop isn’t patched. See System.Exec Function - #4 by DBMandrake.