From 1fdcb25051bf31ad71f07d7591f33a84feaeba50 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 30 Sep 2008 12:28:10 +0000 Subject: fix crash if DBus is active but Hal isn't (#44434) git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@247124 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94 --- draksnapshot-applet | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'draksnapshot-applet') 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; -- cgit v1.2.1