A lot of modern machines do not have a floppy drive any more, but still have a
floppy controller somewhere (or at least the BIOS pretends to). Trying to
open(/dev/fd0) on these machines causes long hangs, which lead to long desktop
startup times.
To fix this, avoid probing floppies for media in update_info().
https://launchpad.net/bugs/539515
{
media_available = FALSE;
- if (!g_udev_device_get_property_as_boolean (device->priv->d, "ID_CDROM"))
+ if (!g_udev_device_get_property_as_boolean (device->priv->d, "ID_CDROM") &&
+ !g_udev_device_get_property_as_boolean (device->priv->d, "ID_DRIVE_FLOPPY"))
{
int fd;
fd = open (device->priv->device_file, O_RDONLY);