[Bug 34886] displays too many drives
Martin Pitt
martin.pitt at ubuntu.com
Thu Mar 16 16:07:22 UTC 2006
Public bug report changed:
https://launchpad.net/malone/bugs/34886
Comment:
Hi hva,
I'm going to change the default to not show VFAT/NTFS drives, so that
the only visible hard disk partitions will be those in /media, which you
probably want. :)
Anyway, this particular policy is in
/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi:
<!-- Here follow volumes we specifically want to ignore - it is the -->
<!-- responsibility of software higher in the stack (e.g. gnome-vfs) -->
<!-- amd mount programs (e.g. Mount() on HAL) to respect volume.ignore -->
<merge key="volume.ignore" type="bool">false</merge>
<match key="@block.storage_device:storage.hotpluggable" bool="false">
<match key="@block.storage_device:storage.removable" bool="false">
<merge key="volume.ignore" type="bool">true</merge>
<match key="volume.is_mounted" bool="true">
<!-- Show windows drives -->
<match key="volume.fstype" string="vfat">
<merge key="volume.ignore" type="bool">false</merge>
</match>
<match key="volume.fstype" string="ntfs">
<merge key="volume.ignore" type="bool">false</merge>
</match>
<!-- Show /media/ and /mnt drives -->
<match key="volume.mount_point" compare_gt="/media">
<match key="volume.mount_point" compare_lt="/media0">
<merge key="volume.ignore" type="bool">false</merge>
</match>
</match>
<match key="volume.mount_point" compare_gt="/mnt">
<match key="volume.mount_point" compare_lt="/mnt0">
<merge key="volume.ignore" type="bool">false</merge>
</match>
</match>
</match>
[...]
The volume.ignore property is the key bit here; it defaults to false for
hard disks, and needs to be set to true for the subset of partitions
which should be shown
More information about the desktop-bugs
mailing list