diff options
Diffstat (limited to 'bin/net_applet')
-rwxr-xr-x | bin/net_applet | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/net_applet b/bin/net_applet index 73ccd0c..1762309 100755 --- a/bin/net_applet +++ b/bin/net_applet @@ -225,7 +225,13 @@ my %actions = ( $icon = Gtk3::StatusIcon->new; eval { $dbus = dbus_object::system_bus() } if !defined($global_settings{NET_APPLET_DBUS}) || text2bool($global_settings{NET_APPLET_DBUS}); +if (my $err = $@) { + log::explanations("failed to acquire DBus: $err"); +} eval { $net->{monitor} = network::monitor->new($dbus) } if $dbus; +if (my $err = $@) { + log::explanations("failed to acquire monitor on DBus: $err (is mandi started?)"); +} if ($dbus) { require network::net_applet::ifw; network::net_applet::ifw::init(); |