Hi All,
I have an executable that needs to be run with sudo as it needs to use the hardware pulse generator.
But I cannot get fe.plugin_command_bg to pass a SUDO command succesfully.
If I pass the flag that lets it run without elevated privilege's it works, so I know everything else is okay.
fe.add_transition_callback( "onTransition" );
function onTransition( ttype, var, ttime ) {
switch ( ttype )
{
case Transition.ToGame:
case Transition.ToNewSelection:
case Transition.FromGame:
fe.plugin_command_bg( "led-image-viewer","--led-no-hardware-pulse --led-rows=32 --led-cols=64 --led-chain=2 --led-slowdown-gpio=3 --led-brightness=50 --led-pwm-bits=9 --led-limit-refresh=50 --led-scan-mode=0 --led-pwm-lsb-nanoseconds=200 /home/pi/GFXdirectory*.png -C");
break;
}
return false; // must return false
}
Am I overlooking something related to fe.plugin_command_bg and SUDO?