On Sat, Feb 15, 2014 at 01:08:07PM +0100, Holger Levsen wrote:
> Hi,
>
> On Samstag, 15. Februar 2014, Holger Levsen wrote:
> > matrix:~$ cat /etc/fdpowermon/theme.pl
> > sub suspend {
> > system("sudo pm-suspend");
> > }
> >
> > my $theme = fdpowermon::theme::get_theme("mytheme");
> > $theme->set_event(0, \&suspend, 'd');
>
> with that I also get this when running fdpowermon:
>
> $ fdpowermon
> Can't call method "set_event" on an undefined value at
> /etc/fdpowermon/theme.pl line 6.
> Compilation failed in require at /usr/bin/fdpowermon line 478.
That's because "mytheme" doesn't exist (needs to be "default", I
suspect), so the get_theme sub returns undef, which you can't call
methods on.
--
This end should point toward the ground if you want to go to space.
If it starts pointing toward space you are having a bad problem and you
will not go to space today.
-- http://xkcd.com/1133/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]