Re: FVWM: FvwmRandomBack

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Mon, 5 Jan 2004 21:32:54 +0000

On 05 Jan 2004 20:25:56 +0100, Guido Berhoerster wrote:
>
> some time ago I wrote a little perl script in order to set a
> random background image and recently I added some features and made
> an Fvwm module out of it. It's called FvwmRandomBack and it's
> pretty simple but for me it does what it is supposed to do and I
> thought that maybe someone else might find it useful. I put it up
> for download at http://www.guido-berhoerster.org/downloads/ (at
> the bottom of the page).
> FvwmRandomBack depends on the Image::Magick perl module which is
> part of ImageMagick (http://www.imagemagick.org). In order to
> install FvwmRandomBack simply put it somewhere within Fvwm's
> ModulePath and make it execuatble.

> I'm not a perl hacker and I have hardly any experience in writing
> Fvwm modules in perl, thus I would very much welcome any
> feedback.

There is no much to comment, since it is a small short-lived script.
But there are some notes that are correct for any FVWM module written in
Perl, so this may be useful to all Perl writers.

First, you may replace all 3 "use Some::Module;" lines with one:

  use FVWM::Module::Toolkit qw( File::Find Image::Magick );

This loads the specified perl classes, or shows a nice error window if
any of them are not installed on the user's system and exits.

Optionally, you may replace "new FVWM::Module" with "new
FVWM::Module::Toolkit", the first class writes all debug, errors and
messages to standard output, the second opens dialog windows instead,
this may be more user friendly or more annoying, depending on a module.

Run "fvwm-perllib man FVWM::Tracker::PageInfo" to see how to find the
screen dimensions in your module.

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Jan 05 2004 - 15:35:10 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST