[gvfs] afc: Don't mount the default AFC service
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] afc: Don't mount the default AFC service
- Date: Sat, 19 Mar 2016 12:30:49 +0000 (UTC)
commit 0b68656de4cca842aa9170a62b6b4884a05f6705
Author: Bastien Nocera <hadess hadess net>
Date: Mon Mar 14 12:05:02 2016 +0100
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
monitor/afc/afcvolumemonitor.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/monitor/afc/afcvolumemonitor.c b/monitor/afc/afcvolumemonitor.c
index 995ef4d..203d436 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]