! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
storage.requires_eject not honoured
Status:
RESOLVED: DUPLICATE
Product:
Thunar-vfs
Component:
General

Comments

Description Tino Keitel 2007-08-14 06:39:53 CEST
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.
Comment 1 Tino Keitel 2007-08-15 20:22:53 CEST
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.
Comment 2 Tino Keitel 2007-08-15 20:26:33 CEST
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/.
Comment 3 Tino Keitel 2007-08-20 20:03:06 CEST
I just saw Bug #3119, so feel free to close this bug if it's a pure duplicate.
Comment 4 Benedikt Meurer editbugs 2007-11-28 20:27:53 CET

*** This bug has been marked as a duplicate of bug 3119 ***

Bug #3466

Reported by:
Tino Keitel
Reported on: 2007-08-14
Last modified on: 2010-11-07

People

Assignee:
Jannis Pohlmann
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information