hal: Branch 'master'

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


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

New commits:
commit 8f5e5cf7a77bc9489021911892ac8128797971db
Author: Joe Marcus Clarke <marcus at FreeBSD.org>
Date:   Tue Mar 18 13:00:08 2008 -0400

    call libhal_device_addon_is_ready()
    
    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