Hi, thanks for this plugin, it's essential in my OSMC RPI setup with a regular PC monitor which doesn't have a remote control.
The problem is, on some systems, vcgencmd is not on PATH. There doesn't seem to be a simple way to customize env vars passed to Kodi Python scripts but adding it to the PATH in screensaver.py works.
This should not break anything on other systems, just fix the problem on OSMC and other similar distributions.
Just a bit of context: my osmc user under which Kodi plugins/scripts are most likely run does have /opt/vc/bin on PATH but it's not present in os.environ["PATH"] when the scripts are run so even passing shell=True to Popen doesn't help. If someone knows how to set the PATH in this case, I'll gladly close the PR since it would be a cleaner solution.
Hi, thanks for this plugin, it's essential in my OSMC RPI setup with a regular PC monitor which doesn't have a remote control.
The problem is, on some systems, vcgencmd is not on PATH. There doesn't seem to be a simple way to customize env vars passed to Kodi Python scripts but adding it to the PATH in screensaver.py works.
This should not break anything on other systems, just fix the problem on OSMC and other similar distributions.
Just a bit of context: my osmc user under which Kodi plugins/scripts are most likely run does have /opt/vc/bin on PATH but it's not present in os.environ["PATH"] when the scripts are run so even passing shell=True to Popen doesn't help. If someone knows how to set the PATH in this case, I'll gladly close the PR since it would be a cleaner solution.
Another fix of this problem was submitted in https://github.com/add-ons/screensaver.turnoff/pull/24 but I think it's a bit hardwired. Other distributions can have the command on different paths.