Shutter does not start in Ubuntu 16.04 LTS Final Beta
Bug #1563341 reported by
Ferdinand Prantl
This bug report is a duplicate of:
Bug #1564122: Please update to bugfix release shutter 0.93.1-1 (universe) from Debian testing (main).
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Shutter |
New
|
Undecided
|
Unassigned |
Bug Description
When starting the shutter from the Dash, nothing happens. When starting it from the command line, it prints an error:
$ shutter
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /usr/bin/shutter line 3727.
I upgraded to the final beta of 16.04 LTS and updated the packages on March 28:
Package: shutter
Version: 0.92-0.1ubuntu1
To post a comment you must log in.
This appears to be caused by upgrading perl in xenial. Checking for an empty array should not used the `defined` keywoed any more. See http:// blogs.perl. org/users/ rurban/ 2012/02/ on-definedarray -and-definedhas h.html, for example. The following change in /usr/bin/shutter fixes the problem:
@@ -3723,7 +3723,7 @@
#edit
&& defined $key screens{ $key}-> {'undo' } } screens{ $key}-> {'undo' } }
&& scalar @{ $session_ screens{ $key}-> {'undo' } } > 1 )
$sm->{_ menuitem_ undo}-> set_sensitive( TRUE);
if ( $n_items
- && defined @{ $session_
+ && @{ $session_
{
@@ -3734,7 +3734,7 @@
if ( $n_items
&& defined $key screens{ $key}-> {'redo' } } screens{ $key}-> {'redo' } }
&& scalar @{ $session_ screens{ $key}-> {'redo' } } > 0 )
$sm->{_ menuitem_ redo}-> set_sensitive( TRUE);
- && defined @{ $session_
+ && @{ $session_
{