[gvfs] Hide mounts having a path element starting with dot
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] Hide mounts having a path element starting with dot
- Date: Tue, 16 Nov 2010 13:42:54 +0000 (UTC)
commit 87d354e8510072a1dcaa5698e4a0fbff34560ee5
Author: Tomas Bzatek <tbzatek redhat com>
Date: Tue Nov 16 14:41:45 2010 +0100
Hide mounts having a path element starting with dot
Corresponds to commit 2bfcffde9ae5b14e78a4279bf48c71897c5f19d8 in glib.
Also bump required glib version to get consistent results.
configure.ac | 2 +-
monitor/gdu/ggduvolumemonitor.c | 4 ++++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 629b43a..808c40c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,7 +45,7 @@ GTK_DOC_CHECK
DISTCHECK_CONFIGURE_FLAGS="--enable-gtk-doc"
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
-PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.27.1 gthread-2.0 gobject-2.0 gmodule-no-export-2.0 gio-unix-2.0 gio-2.0 )
+PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.27.4 gthread-2.0 gobject-2.0 gmodule-no-export-2.0 gio-unix-2.0 gio-2.0 )
PKG_CHECK_MODULES(DBUS, dbus-1)
diff --git a/monitor/gdu/ggduvolumemonitor.c b/monitor/gdu/ggduvolumemonitor.c
index 446acfc..8f0e643 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/"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]