[Slackbuilds-users] shutter not working in 14.2: patch to fix it

Jim Diamond Jim.Diamond at acadiau.ca
Wed Aug 24 13:42:05 UTC 2016


On Sun, Jul 17, 2016 at 13:15 (-0300), Jim Diamond wrote:

> Hi,

> when I try to run shutter in S64-14.2 I get
> Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /usr/bin/shutter line 3557.

Perhaps everyone else has figured this out by now, but as much as I
hate touching perl code, I found that the following changes seem to make
perl happy.  At least, so far it runs and I haven't seen a problem.
Any perl gurus here may wish to improve my changes.

$ diff /usr/bin/shutter /usr/bin/shutter.s-dist
3557c3557
< 			if($n_items && defined $key && defined $session_screens{$key} && @{$session_screens{$key}->{'undo'}} && scalar @{$session_screens{$key}->{'undo'}} > 1){
---
> 			if($n_items && defined $key && defined @{$session_screens{$key}->{'undo'}} && scalar @{$session_screens{$key}->{'undo'}} > 1){
3562,3563c3562,3563
< 
< 			if($n_items && defined $key && defined $session_screens{$key} && $session_screens{$key}->{'redo'} && scalar @{$session_screens{$key}->{'redo'}} > 0){
---
> 		
> 			if($n_items && defined $key && defined @{$session_screens{$key}->{'redo'}} && scalar @{$session_screens{$key}->{'redo'}} > 0){


Perhaps this patch could be incorporated into the slackbuild until a
new version of shutter is available at SBo?

Cheers.

                                Jim


More information about the SlackBuilds-users mailing list