Hi, Thunar uses thunar_vfs_volume_is_disc() to decide whether a volume can be ejected or not. It is therefore limited to optical discs. However, there are other devices that handle the eject command. For example, iPods leave the USB storage mode and go to normal playback mode. My USB card reader switches of its activity LED when it is ejected. Maybe there are other cases like this. For this purpose, there is a HAL capability storage.requires_eject. It would be nice if Thunar additionally checks for this capability to decide if a volume can be ejected or not.
Created attachment 1312 add thunar_vfs_volume_get_eject() and use it for the context menu This patch adds a get_eject() function to the volume class. It queries HAL if a device has the "storage.requires_eject" capability set. This get_eject() is used in addition to the checks for CD/DVD to provide an "Eject" entry for devices that request it via HAL.
Created attachment 1313 example HAL fdi file to add the storage.requires_eject capability This file is an example how I added the storage.requires_eject capability to my USB card reader. This is has to be done for devices if the user wants the eject entry, but the already existing fdi files don't define it for that device. Just adjust it to the vendor/device strings of your device and put it into /etc/hal/fdi/policy/.
I just saw Bug #3119, so feel free to close this bug if it's a pure duplicate.
*** This bug has been marked as a duplicate of bug 3119 ***