summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xbin/net_applet6
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 996b281..8484f4f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- fix "unescaped left brace" warnings in perl-5.22+.
+- log dbus errors
2.22
- draknfs, draksambashare:
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();