hal: Branch 'hal-0_5_11-branch'

Joe Marcus Clarke marcus at kemper.freedesktop.org
Tue Mar 18 10:59:24 PDT 2008


 hald/freebsd/addons/addon-storage.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit d1a1ed6833e534a153a20c816ed0025f21ad704a
Author: Joe Marcus Clarke <marcus at FreeBSD.org>
Date:   Tue Mar 18 13:59:28 2008 -0400

    call libhal_device_addon_is_ready()
    
    MFH:
    We were not calling libhal_device_addon_is_ready like a good addon is supposed
    to.  This meant that auto-mounting HAL volumes in Nautilus would not work
    properly.

diff --git a/hald/freebsd/addons/addon-storage.c b/hald/freebsd/addons/addon-storage.c
index 140fcd7..07e667e 100644
--- a/hald/freebsd/addons/addon-storage.c
+++ b/hald/freebsd/addons/addon-storage.c
@@ -202,6 +202,10 @@ main (int argc, char **argv)
     ! strcmp(driver, "cd")))) && ! strcmp(removable, "true");
   addon.had_media = hf_addon_storage_update();
 
+  if (!libhal_device_addon_is_ready(hfp_ctx, hfp_udi, &hfp_error))
+    goto end;
+  dbus_error_free(&hfp_error);
+
   connection = libhal_ctx_get_dbus_connection(hfp_ctx);
   assert(connection != NULL);
 


More information about the hal-commit mailing list