Changeset 9574


Ignore:
Timestamp:
2005-04-07T12:32:06+12:00 (19 years ago)
Author:
mdewsnip
Message:

Added a couple of checks for Windows 95/98 to a) prevent pluginfo.pl from barfing on ImagePlug, and b) display a message telling the user that ImagePlug won't work on Windows 95/98.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/ImagePlug.pm

    r9067 r9574  
    107107    }
    108108
    109     # Check that ImageMagick is installed and available on the path
    110     my $result = `identify 2>&1`;
    111     if ($? == -1 || $? == 256) {  # Linux and Windows return different values for "program not found"
    112     $self->{'imagemagick_not_installed'} = 1;
     109    # Check that ImageMagick is installed and available on the path (except for Windows 95/98)
     110    if (!($ENV{'GSDLOS'} eq "windows" && !Win32::IsWinNT())) {
     111    my $result = `identify 2>&1`;
     112    if ($? == -1 || $? == 256) {  # Linux and Windows return different values for "program not found"
     113        $self->{'imagemagick_not_installed'} = 1;
     114    }
    113115    }
    114116
     
    142144    my $verbosity = $self->{'verbosity'};
    143145    my $outhandle = $self->{'outhandle'};
     146
     147    # None of this works very well on Windows 95/98...
     148    if ($ENV{'GSDLOS'} eq "windows" && !Win32::IsWinNT()) {
     149    print $outhandle "ImagePlug: Windows 95/98 not supported\n" if ($verbosity > 1);
     150    return undef;
     151    }
    144152
    145153    # None of this is going to work very well without ImageMagick...
Note: See TracChangeset for help on using the changeset viewer.