aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2008-03-18 13:59:28 -0400
committerJoe Marcus Clarke <marcus@FreeBSD.org>2008-03-18 13:59:28 -0400
commitd1a1ed6833e534a153a20c816ed0025f21ad704a (patch)
tree6632b99f1130f0c0e003aff75b34944fb2e25f07
parentclean up Apple releted fdi-files (diff)
downloadgentoo-hal-d1a1ed6833e534a153a20c816ed0025f21ad704a.tar.gz
gentoo-hal-d1a1ed6833e534a153a20c816ed0025f21ad704a.tar.bz2
gentoo-hal-d1a1ed6833e534a153a20c816ed0025f21ad704a.zip
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.
-rw-r--r--hald/freebsd/addons/addon-storage.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hald/freebsd/addons/addon-storage.c b/hald/freebsd/addons/addon-storage.c
index 140fcd7a..07e667ed 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);