GNOME Bugzilla – Bug 430787
Disable eject if it isn't supported
Last modified: 2008-02-14 08:53:17 UTC
[ Forwarded from http://bugs.debian.org/233134 ] "My drive does not support the CDROMEJECT ioctl, so the Eject button and menu item always fail. It would be better if they were disabled or removed in this case. The CDROM_GET_CAPABILITIES ioctl can be used to determine whether eject is supported." There's a patch attached to the Debian bug, but I'm not sure if it's relevant as it's quite old.
Sounds good to me, although it would be better if nautilus_burn_drive_can_eject() was added to libnautilus-burn.
I have written added the code for this to libnautilus-burn, and made the change to sound-juicer. How should I go about getting this added to libnautilus-burn? Raise an enhancement on that and refer back to this bug?
I filed #506930, so you can attach a patch there.
Patch attached in #506930.
Now that nautilus_burn_drive_can_eject() has been added to nautilus-cd-burner, I will upload a patch for sound-juicer.
Created attachment 104236 [details] [review] Disable Eject menu item if ejection is not supported by the device
I added a configure time check for the new function (so I don't have to rebuild all of GNOME to test this!) and committed, thanks.