summaryrefslogtreecommitdiff
path: root/monitor/gdu
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2010-11-16 14:41:45 +0100
committerTomas Bzatek <tbzatek@redhat.com>2010-11-16 14:41:45 +0100
commit87d354e8510072a1dcaa5698e4a0fbff34560ee5 (patch)
tree4bacfcaae3ea67424ac5bd6d01ce67885b9b5fdb /monitor/gdu
parentfbe59781db12047659cc6bf73c21aa34a48ec9a7 (diff)
downloadgvfs-87d354e8510072a1dcaa5698e4a0fbff34560ee5.tar.gz
Hide mounts having a path element starting with dot
Corresponds to commit 2bfcffde9ae5b14e78a4279bf48c71897c5f19d8 in glib. Also bump required glib version to get consistent results.
Diffstat (limited to 'monitor/gdu')
-rw-r--r--monitor/gdu/ggduvolumemonitor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/monitor/gdu/ggduvolumemonitor.c b/monitor/gdu/ggduvolumemonitor.c
index 446acfcf..8f0e6434 100644
--- a/monitor/gdu/ggduvolumemonitor.c
+++ b/monitor/gdu/ggduvolumemonitor.c
@@ -638,6 +638,10 @@ _g_unix_mount_point_guess_should_display (GUnixMountPoint *mount_point)
if (g_unix_is_mount_path_system_internal (mount_path))
return FALSE;
+ /* Hide mounts within a dot path, suppose it was a purpose to hide this mount */
+ if (g_strstr_len (mount_path, -1, "/.") != NULL)
+ return FALSE;
+
/* Only display things in /media (which are generally user mountable)
and home dir (fuse stuff) */
if (g_str_has_prefix (mount_path, "/media/"))