/usr/share/perl5/App/Alice/Notifier/LibNotify.pm is in alice 0.19-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | package App::Alice::Notifier::LibNotify;
use Desktop::Notify;
use Any::Moose;
has 'client' => (
is => 'ro',
isa => 'Desktop::Notify',
default => sub {
return Desktop::Notify->new;
}
);
sub display {
my ($self, $message) = @_;
my $notification = $self->client->create(
summary => $message->{nick} . " in " . $message->{window}->{title},
body => $message->{body},
timeout => 3000);
$notification->show;
}
__PACKAGE__->meta->make_immutable;
1;
|