Hi there.
Got another issue...
I have a simple bash script that works when added as a menu item to a regular submenu, e.g. Settings. The script is executed as 'custom command' with System.Exec(). If I instead create the menu item calling the script in the "Power" menu, it does not work.
This is the script:
Bash
#!/bin/bash
# Check if anything gets downloaded and prevent shutdown
# Set this script in Kodi's Power menu with "System.Exec()"
if [ -e /tmp/downloadflag ] ; then
kodi-send --action="Notification(Download in progress,Shutdown aborted!,20000)"
else
kodi-send --action=Powerdown
fi
If I insert a touch ~/EXECUTED before the kodi-send line, that file gets created alright, so the script does get called. It seems like it's really the "kodi-send" that doesn't work.
Any ideas why that may be?
Thanks!