pkg-perl-maintainers team mailing list archive
-
pkg-perl-maintainers team
-
Mailing list archive
-
Message #03482
[Bug 1734202] [NEW] Error when switching profiles
Public bug reported:
Both Shutter 0.93.1 and 0.94 prevent from switching profiles.
Using Shutter 0.94 on Ubuntu 17.04, trying to switch profiles leads to
Can't call method "get_children" on an undefined value at
/usr/bin/shutter line 4966
FWIW, I could manage to switch profiles by manually editing shutter
around line 4966 as follows:
if ( defined $web_menu ){ # ADDED
my @timeouts = $web_menu->get_children;
my $timeout = undef;
foreach my $to (@timeouts) {
$timeout = $to->get_name;
$timeout =~ /([0-9]+)/;
$timeout = $1;
if ( $settings_xml->{'general'}->{'web_timeout'} == $timeout ) {
$to->set_active(TRUE);
}
}
} # ADDED
** Affects: shutter (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
Both Shutter 0.93.1 and 0.94 prevent from switching profiles.
Using Shutter 0.94 on Ubuntu 17.04, trying to switch profiles leads to
- Can't call method "get_children" on an undefined value at
+ Can't call method "get_children" on an undefined value at
/usr/bin/shutter line 4966
FWIW, I could manage to switch profilew by manually editing shutter
around line 4966 as follows:
- {{{
- #!perl
- if ( defined $web_menu ){ # ADDED
- my @timeouts = $web_menu->get_children;
- my $timeout = undef;
- foreach my $to (@timeouts) {
- $timeout = $to->get_name;
- $timeout =~ /([0-9]+)/;
- $timeout = $1;
- if ( $settings_xml->{'general'}->{'web_timeout'} == $timeout ) {
- $to->set_active(TRUE);
- }
- }
- } # ADDED
- }}}
+ if ( defined $web_menu ){ # ADDED
+ my @timeouts = $web_menu->get_children;
+ my $timeout = undef;
+ foreach my $to (@timeouts) {
+ $timeout = $to->get_name;
+ $timeout =~ /([0-9]+)/;
+ $timeout = $1;
+ if ( $settings_xml->{'general'}->{'web_timeout'} == $timeout ) {
+ $to->set_active(TRUE);
+ }
+ }
** Description changed:
Both Shutter 0.93.1 and 0.94 prevent from switching profiles.
Using Shutter 0.94 on Ubuntu 17.04, trying to switch profiles leads to
Can't call method "get_children" on an undefined value at
/usr/bin/shutter line 4966
FWIW, I could manage to switch profilew by manually editing shutter
around line 4966 as follows:
if ( defined $web_menu ){ # ADDED
my @timeouts = $web_menu->get_children;
my $timeout = undef;
foreach my $to (@timeouts) {
$timeout = $to->get_name;
$timeout =~ /([0-9]+)/;
$timeout = $1;
if ( $settings_xml->{'general'}->{'web_timeout'} == $timeout ) {
$to->set_active(TRUE);
}
}
+ } # ADDED
** Description changed:
Both Shutter 0.93.1 and 0.94 prevent from switching profiles.
Using Shutter 0.94 on Ubuntu 17.04, trying to switch profiles leads to
Can't call method "get_children" on an undefined value at
/usr/bin/shutter line 4966
- FWIW, I could manage to switch profilew by manually editing shutter
+ FWIW, I could manage to switch profiles by manually editing shutter
around line 4966 as follows:
if ( defined $web_menu ){ # ADDED
my @timeouts = $web_menu->get_children;
my $timeout = undef;
foreach my $to (@timeouts) {
$timeout = $to->get_name;
$timeout =~ /([0-9]+)/;
$timeout = $1;
if ( $settings_xml->{'general'}->{'web_timeout'} == $timeout ) {
$to->set_active(TRUE);
}
}
- } # ADDED
+ } # ADDED
--
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to shutter in Ubuntu.
https://bugs.launchpad.net/bugs/1734202
Title:
Error when switching profiles
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shutter/+bug/1734202/+subscriptions
Follow ups