From d3eb4943d88f84db1a827bb0c7bc51984250eab7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 5 Feb 2014 00:23:31 +0100 Subject: explain --- mgaapplet | 1 + 1 file changed, 1 insertion(+) (limited to 'mgaapplet') diff --git a/mgaapplet b/mgaapplet index 5991921d..78f9f134 100755 --- a/mgaapplet +++ b/mgaapplet @@ -693,6 +693,7 @@ sub setState { $bubble->set_urgency($state{$state}{urgency}) if $state{$state}{urgency}; my $timeout = 5000; $bubble->set_timeout($timeout); + # both need to be in a eval block in case notification daemon isn't running: Glib::Timeout->add($timeout, sub { eval { $bubble->close }; 0 }); eval { $bubble->show }; warn ">> ERR:$@" if $@; -- cgit v1.2.1