[gnome-settings-daemon/mount-plugin: 8/13] Respect the should-automount hint when hotplugging
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/mount-plugin: 8/13] Respect the should-automount hint when hotplugging
- Date: Thu, 1 Apr 2010 21:45:30 +0000 (UTC)
commit 9a7a62d386af1c36101c446e02c6a2bb04047af9
Author: Ross Burton <ross linux intel com>
Date: Fri Aug 21 16:37:08 2009 +0100
Respect the should-automount hint when hotplugging
plugins/mount/gsd-mount-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/mount/gsd-mount-manager.c b/plugins/mount/gsd-mount-manager.c
index a768f03..eb441a6 100644
--- a/plugins/mount/gsd-mount-manager.c
+++ b/plugins/mount/gsd-mount-manager.c
@@ -94,7 +94,8 @@ volume_added_cb (GVolumeMonitor *monitor,
name = g_volume_get_name (volume);
g_debug ("Volme '%s' added", name);
- if (g_volume_can_mount (volume)) {
+ if (g_volume_can_mount (volume) &&
+ g_volume_should_automount (volume)) {
GMountOperation *mount_op;
g_debug ("Mounting '%s'", name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]