summaryrefslogtreecommitdiffstats
path: root/draksnapshot-applet
diff options
context:
space:
mode:
Diffstat (limited to 'draksnapshot-applet')
-rwxr-xr-xdraksnapshot-applet3
1 files changed, 1 insertions, 2 deletions
diff --git a/draksnapshot-applet b/draksnapshot-applet
index 587a1f7..715604e 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -93,8 +93,7 @@ my $dbus_error = $@;
# initializing DBus/HAL:
my ($do, $con);
-if ($dbus) {
- $do = dbus_object->new($dbus, $hal_dn, $manager_path, $hal_manager);
+if ($dbus && $do = eval { dbus_object->new($dbus, $hal_dn, $manager_path, $hal_manager) }) {
$con = eval { $dbus->{connection} };
my $old_time;