thunar-volman: application for porable music players starts for each USB storage device

Tino Keitel tino.keitel+xfce at tikei.de
Wed Aug 15 23:39:43 CEST 2007


On Tue, Jul 31, 2007 at 11:16:14 +0200, Tino Keitel wrote:
> On Fri, Jul 27, 2007 at 08:42:20 +0200, Yves-Alexis Perez wrote:
> > On jeu, 2007-07-26 at 15:07 -0700, Kok, Auke wrote:
> > > for memory/flash media, "eject" is the equivalent of "umount". Only
> > > devices 
> > > which have a "tray" do something else -> open it up. 
> > 
> > Some mp3 players or external hard drives shutdown themselves when
> > receiving "eject" too.
> 
> It looks like hal sets a "storage.requires_eject" capability for
> certain devices, e.g. for iPods:
> 
> <match key="storage.vendor" contains="Apple">
>   <match key="storage.model" contains="iPod">
>     [...]
>     <merge key="storage.requires_eject" type="bool">true</merge>
>   </match>
> </match>
> 
> So maybe Thunar could use this information to decide if an eject is
> desired of if a simple umount is enough.

For the records: this is handled by
http://bugzilla.xfce.org/show_bug.cgi?id=3466, I also added a patch.
Feel free to test it.

Regards,
Tino



More information about the Xfce mailing list