diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2010-11-16 14:41:45 +0100 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2010-11-16 14:41:45 +0100 |
commit | 87d354e8510072a1dcaa5698e4a0fbff34560ee5 (patch) | |
tree | 4bacfcaae3ea67424ac5bd6d01ce67885b9b5fdb /monitor/gdu | |
parent | fbe59781db12047659cc6bf73c21aa34a48ec9a7 (diff) | |
download | gvfs-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.c | 4 |
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/")) |