summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmgaapplet1
1 files changed, 1 insertions, 0 deletions
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 $@;