summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-06-09 07:14:33 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-09-03 06:45:04 +0200
commit4e285a0a6f56c7e213ee0334c9d2856162d11b38 (patch)
treed30a3b87a230182bf6eab62fbd48cc1d5635dd17 /bin
parenteef1c7525d6db9f2900c47de54f2ed8604c47129 (diff)
downloaddrakx-net-4e285a0a6f56c7e213ee0334c9d2856162d11b38.tar
drakx-net-4e285a0a6f56c7e213ee0334c9d2856162d11b38.tar.gz
drakx-net-4e285a0a6f56c7e213ee0334c9d2856162d11b38.tar.bz2
drakx-net-4e285a0a6f56c7e213ee0334c9d2856162d11b38.tar.xz
drakx-net-4e285a0a6f56c7e213ee0334c9d2856162d11b38.zip
log dbus errors
Diffstat (limited to 'bin')
-rwxr-xr-xbin/net_applet6
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();