shutter not work on Ubuntu 16.04

Asked by uralbash

After update my Ubuntu 16.04 I have error:

Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /usr/bin/shutter line 3727.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report bug. Xenial is not ready and is not stable. It has only just gone Alpha 1.

If you want an OS that works then I suggest you wipe Xenial off and do a clean install of Trusty. You can upgrade to Xenial when it is released in April. Xenial is not for the average user and is for people who can manage their own systems and want to submit bugs to get the new version ready for release.

Revision history for this message
Julian Alarcon (julian-alarcon) said :
#2

This was reported as a bug, as a workaround, you can add the Shutter PPA https://launchpad.net/~shutter/+archive/ubuntu/ppa

Revision history for this message
faramarz42 (faramarzmht42) said :
#3

Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /usr/bin/shutter line 3727

Revision history for this message
Guido Maria Serra (zeph1ro) said :
#4

@andrew-woodhead666 what's the purpose of such answer?
Alpha 1 is supposed to catch bugs with advanced users, you are helping noone suggesting to go back to Trusty

I'll have a look at the code, as I just stumbled on this myself...
either perl has changed version, and syntax, or the code of shutter itself has changed... brb

Revision history for this message
Guido Maria Serra (zeph1ro) said :
#5

the latest shutter version posted by the author is working,
and it contains a change exactly on the lines we are having trouble with

guido@stmary:~/tmp/shutter$ diff /usr/bin/shutter bin/shutter
106c106
< use constant SHUTTER_REV => 'Rev.1269';
---
> use constant SHUTTER_REV => 'Rev.1278';
108c108
< use constant SHUTTER_VERSION => '0.92';
---
> use constant SHUTTER_VERSION => '0.93.1';
3726c3726
< && defined @{ $session_screens{$key}->{'undo'} }
---
> && defined $session_screens{$key}->{'undo'}
3737c3737
< && defined @{ $session_screens{$key}->{'redo'} }
---
> && defined $session_screens{$key}->{'redo'}

Can you help with this problem?

Provide an answer of your own, or ask uralbash for more information if necessary.

To post a message you must log in.