[gnome-control-center/gnome-3-4] info: Ignore removable mounts
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-4] info: Ignore removable mounts
- Date: Thu, 19 Apr 2012 13:27:09 +0000 (UTC)
commit 18ead26c34cc8faf4af4ac7147cfa0092f94f9bc
Author: Bastien Nocera <hadess hadess net>
Date: Thu Apr 19 14:26:11 2012 +0100
info: Ignore removable mounts
That used to be in /media and are now in /run/media/$USERNAME/
panels/info/cc-info-panel.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 226d201..254784f 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -665,6 +665,7 @@ get_primary_disc_info (CcInfoPanel *self)
mount_path = g_unix_mount_get_mount_path (mount);
if (gsd_should_ignore_unix_mount (mount) ||
+ gsd_is_removable_mount (mount) ||
g_str_has_prefix (mount_path, "/media/") ||
g_str_has_prefix (mount_path, g_get_home_dir ()))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]