summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendafpbrowse.c
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2017-01-04 10:31:08 +0100
committerOndrej Holy <oholy@redhat.com>2017-06-06 09:11:24 +0200
commitceb0daa48bd6b5144873a4984572c2781fa4a7ac (patch)
tree3ef72406e6e921caa0ba7441b6b08c2d8ec6708e /daemon/gvfsbackendafpbrowse.c
parent29872122c87623c77a85869e309f79a50aed8e09 (diff)
downloadgvfs-ceb0daa48bd6b5144873a4984572c2781fa4a7ac.tar.gz
Do not sent user invisible mounts if not needed
g_volume_monitor_get() might be really slow if there is too many mounts, because the list of the mounts is send over D-Bus. It can simply happen due to user invisible mounts, e.g. http. User invisible mounts are ignored by the volume monitor, so it is useless to send them over D-Bus. Improve the D-Bus API and don't send the user invisible mounts if it is not needed. https://bugzilla.gnome.org/show_bug.cgi?id=775600
Diffstat (limited to 'daemon/gvfsbackendafpbrowse.c')
-rw-r--r--daemon/gvfsbackendafpbrowse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsbackendafpbrowse.c b/daemon/gvfsbackendafpbrowse.c
index 426507b5..c614aeeb 100644
--- a/daemon/gvfsbackendafpbrowse.c
+++ b/daemon/gvfsbackendafpbrowse.c
@@ -518,7 +518,7 @@ g_vfs_backend_afp_browse_init (GVfsBackendAfpBrowse *object)
{
GVfsBackendAfpBrowse *afp_backend = G_VFS_BACKEND_AFP_BROWSE (object);
- afp_backend->mount_tracker = g_mount_tracker_new (NULL);
+ afp_backend->mount_tracker = g_mount_tracker_new (NULL, FALSE);
afp_backend->addr = NULL;
afp_backend->user = NULL;