From f34101e11b5b12ca67403f63f919b229b4e1c75e Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 10 Jul 2009 17:02:11 +0200 Subject: [PATCH] hide recovery and boot partitions from desktops Set DKD_PRESENTATION_HIDE for partitions which desktops should hide, such as EFI, Apple bootstrap, or recovery partitions. This is a direct port of the earlier hal fdis: http://cgit.freedesktop.org/hal/tree/fdi/policy/10osvendor/20-storage-methods.fdi#n80 libgdu evaluates this and exports it as device-presentation-hide property, which gvfs respects. https://bugs.freedesktop.org/show_bug.cgi?id=22707 --- data/95-devkit-disks.rules | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/data/95-devkit-disks.rules b/data/95-devkit-disks.rules index 7058897..d76c091 100644 --- a/data/95-devkit-disks.rules +++ b/data/95-devkit-disks.rules @@ -106,4 +106,18 @@ ENV{ID_VENDOR}=="*IOMEGA*", ENV{ID_MODEL}=="*ZIP*", ENV{ID_DRIVE_FLOPPY_ZIP}="1" ############################################################################################################## +# partitions which desktops should not display + +# Apple Bootstrap partitions +ENV{ID_FS_TYPE}=="hfs", ENV{ID_FS_LABEL}=="bootstrap", ENV{DKD_PRESENTATION_HIDE}="1" + +# EFI firmware partitions +ENV{ID_FS_TYPE}=="vfat", ENV{ID_FS_LABEL}=="EFI", ENV{DKD_PRESENTATION_HIDE}="1" + +# recovery partitions +ENV{ID_FS_TYPE}=="ntfs|vfat", ENV{ID_FS_LABEL}=="RECOVERY|PQSERVICE|HP_RECOVERY|Recovery Partition|DellUtility|DellRestore|IBM_SERVICE|SERVICEV001|SERVICEV002", ENV{DKD_PRESENTATION_HIDE}="1" + + +############################################################################################################## + LABEL="devkit_disks_end" -- 1.6.3.3