Here's a patch that makes floppies work correctly in Gnome and many other places (latest version of source code for Wheezy from apt-get source). I still have a floppy, this compiles and works well where the floppies do not work in the default version. I've also attached a diff file.

--- udisks-1.0.2/src/device.c    2011-03-23 10:18:23.000000000 -0600
+++ udisks-1.0.2.patched/src/device.c    2011-03-23 10:23:03.000000000 -0600
@@ -4486,7 +4486,8 @@
         }
       else
         {
- if (g_udev_device_get_property_as_boolean (device->priv->d, "ID_CDROM_MEDIA")) + if (g_udev_device_get_property_as_boolean (device->priv->d, "ID_CDROM_MEDIA") || + g_udev_device_get_property_as_boolean (device->priv->d, "ID_DRIVE_FLOPPY"))
             {
               media_available = TRUE;
             }



--
BH
~~~~~~~~~~~~~~~~~~~~
Random quotation:
Just remember: when you go to court, you are trusting your fate to
twelve people that weren't smart enough to get out of jury duty!
~~~~~~~~~~~~~~~~~~~~

--- udisks-1.0.2/src/device.c	2011-03-23 10:18:23.000000000 -0600
+++ udisks-1.0.2.patched/src/device.c	2011-03-23 10:23:03.000000000 -0600
@@ -4486,7 +4486,8 @@
         }
       else
         {
-          if (g_udev_device_get_property_as_boolean (device->priv->d, "ID_CDROM_MEDIA"))
+          if (g_udev_device_get_property_as_boolean (device->priv->d, "ID_CDROM_MEDIA") ||
+              g_udev_device_get_property_as_boolean (device->priv->d, "ID_DRIVE_FLOPPY"))
             {
               media_available = TRUE;
             }

Reply via email to