Hey!
Good idea to use "slim -d_plugins"!
If i start slimserver in this way it works well (it executes the script
as expected) but if i start slimserver via "slimtray.exe" (the normal
way with WinXP) it doesn't work!
Why that?
BTW i think i have found an error in execute.pm:
in the sub commandCallbackPower there is not always a selection between
power-off and power-on.
Here the corresponding lines:
sub commandCallbackPower {
my $request = shift;
my $client = $request->client();
return unless $client;
my $code = $request->getParam('_buttoncode');
my $scriptPath = scriptPath();
my $runScript;
if ($client->power) {
$::d_plugins && msg("Execute: Power On\n");
$runScript = $client->prefGet('script'.3);
} else {
$::d_plugins && msg("Execute: Power Off\n");
$runScript = $client->prefGet('script'.4);
}
if ((!defined($runScript)) || ($runScript eq '')) {
# old $runScript = Slim::Utils::Prefs::get('plugin-Execute-power_on');
# begin new (ef)
if ($client->power) {
$runScript = Slim::Utils::Prefs::get('plugin-Execute-power_on');
} else {
$runScript = Slim::Utils::Prefs::get('plugin-Execute-power_off');
}
# end new (ef)
....
Im still wondering why the 'script'.4 is empty so that the
if ((!defined($runScript)) || ($runScript eq '')) is true but with my
extention (my first perl? scipt ;-) ) it runs well.
Erich
--
erichabg
------------------------------------------------------------------------
erichabg's Profile: http://forums.slimdevices.com/member.php?userid=9442
View this thread: http://forums.slimdevices.com/showthread.php?t=31035
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins