summaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2016-03-14 12:05:02 +0100
committerBastien Nocera <hadess@hadess.net>2016-03-19 13:30:11 +0100
commit0b68656de4cca842aa9170a62b6b4884a05f6705 (patch)
treebe3d7283c1583ce506650923b0306a0bb077f129 /monitor
parent7ca0618af5d57e50041ff9e0ca90717861135783 (diff)
downloadgvfs-0b68656de4cca842aa9170a62b6b4884a05f6705.tar.gz
afc: Don't mount the default AFC service
There's no interesting data for users in afc:/// so it's best to show iDevices through MTP instead. The only reason we'd want to use this mount is if we had support for accessing the iTunes database. Unfortunately, this database needs to be encrypted, and we don't know how to encrypt it. Even then, we would probably want the default AFC service to be hidden so only applications access it, and not users. https://bugzilla.gnome.org/show_bug.cgi?id=749639
Diffstat (limited to 'monitor')
-rw-r--r--monitor/afc/afcvolumemonitor.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/monitor/afc/afcvolumemonitor.c b/monitor/afc/afcvolumemonitor.c
index 995ef4d1..203d436b 100644
--- a/monitor/afc/afcvolumemonitor.c
+++ b/monitor/afc/afcvolumemonitor.c
@@ -29,14 +29,8 @@ g_vfs_afc_monitor_create_volume (GVfsAfcVolumeMonitor *self,
g_print ("creating volume for device uuid '%s'\n", uuid);
- volume = g_vfs_afc_volume_new (G_VOLUME_MONITOR (self), uuid, NULL);
- if (volume != NULL)
- {
- self->volumes = g_list_prepend (self->volumes, volume);
- g_signal_emit_by_name (self, "volume-added", volume);
- }
-
- /* The house arrest service */
+ /* Only add the house arrest volume, the default AFC service
+ * doesn't contain anything that users should modify */
volume = g_vfs_afc_volume_new (G_VOLUME_MONITOR (self), uuid, HOUSE_ARREST_SERVICE_PORT);
if (volume != NULL)
{