diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-06-09 07:14:33 -0400 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-09-03 06:45:04 +0200 |
commit | 4e285a0a6f56c7e213ee0334c9d2856162d11b38 (patch) | |
tree | d30a3b87a230182bf6eab62fbd48cc1d5635dd17 /bin | |
parent | eef1c7525d6db9f2900c47de54f2ed8604c47129 (diff) | |
download | drakx-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-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(); |