PDA

View Full Version : Screensaver suggestions



Craig, James (IT)
2004-08-27, 08:15
Hi guys,
First - apologies if this is REALLY obvious!

The biggest problem I found while writing my plugin is that SlimServer
starts up fine even if your plugin code is broken!
I thoroughly recommend using both 'strict' and 'warnings' modes and
doing a compilation/syntax check (perl -c) on your
plugin code before even bothering to start SlimServer.

James

-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Stuart
Sent: 27 August 2004 16:05
To: Slim Devices Discussion
Subject: [slim] Screensaver suggestions

> I have tried several times to "get" Perl's syntax, and failed quite
> miserably thank you. I guess my brain is just too wired in VB and I
just
> can't get past Perl's cryptic syntax (too much like C IMHO). Anyway,
I
> haven't seen any plugins that are documented well enough to use good
old
> fashioned trial-and-error (i.e. what each command does).

I'm in the same boat. I'm from a VB/Java background. I tried to do a
very simple plugin that would automatically set the sleep timer to 90
minutes every time the player was switched on. I did a cut & paste job
with bits of code i found from other plugins, but it just didn't work.
It's a feature I wish I had, cos I forget to press the sleep button when

I go to bed, so it stays on all night.

kdf
2004-08-27, 09:34
Quoting "Craig, James (IT)" <James.Craig (AT) morganstanley (DOT) com>:

> Hi guys,
> First - apologies if this is REALLY obvious!
>
> The biggest problem I found while writing my plugin is that SlimServer
> starts up fine even if your plugin code is broken!
> I thoroughly recommend using both 'strict' and 'warnings' modes and
> doing a compilation/syntax check (perl -c) on your
> plugin code before even bothering to start SlimServer.

slimserver.pl --d_plugins
there is code to prevent the server from crashing if any plugin is broken, but
this debug switch will let you see the eval results, thus any runtime errors in
a plugin.
-kdf