Hi, 2009/5/2 David Zeuthen <[email protected]>: > As such, together with the DeviceKit-power project, the GNOME desktop in > Fedora 11 basically don't depend on HAL (or gnome-mount) any more so > this is a major milestone in the greater HAL-ectomy that Kay wrote about > earlier. We expect to get completely rid of the last HAL bits maybe as > early as GNOME 2.28 / Fedora 12. Rock on!
As part of this so-called "HAL-ectomy", I've been looking at writing an udev alternative for the hal callout provided by libgpod ( http://www.gtkpod.org/libgpod/ ). Currently, our HAL callout runs when an iPod is plugged in, it sends some SCSI commands to the ipod and set info.desktop.icon and info.desktop.name using the data returned by these commands. So what I tried to do is write an udev rules file matching the iPod vendor id/product id and triggering a RUN+=my_udev_binary which would do the work and set DKD_PRESENTATION_NAME and DKD_PRESENTATION_ICON_NAME in the udev database as explained on http://cgit.freedesktop.org/DeviceKit/DeviceKit-disks/tree/doc/man/DeviceKit-disks.xml#n31 What I managed to do so far is to write this rules file, my binary is run as expected, and from it I manage to get an udev_device using libudev. But I got stuck there, I couldn't find any way to set an udev property using either libudev or devicekit-gobject from my binary. Do you have any pointer to some doc or code showing how I can set these properties ? Thanks, Christophe PS: the current code can be found at http://cgit.freedesktop.org/~teuf/libgpod/log/?h=devicekit , the udev stuff being in tools/ _______________________________________________ devkit-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/devkit-devel
