summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2020-12-14 19:45:23 +0000
committerOndrej Holy <oholy@redhat.com>2020-12-18 10:55:39 +0000
commitdad5415fe49a5990d39d8390e9b01af3f77cef9a (patch)
treea25ad3a62a129453630db52d4ee08bb8afa1f8e9 /daemon
parentb494ec31dfc16f9bb41d08e880ec607ac7d1ff13 (diff)
downloadgvfs-dad5415fe49a5990d39d8390e9b01af3f77cef9a.tar.gz
mtp: Use G_FILESYSTEM_PREVIEW_TYPE_NEVER
gphoto2 does this since commit 983186766060ec82e260f8cd9a5160b93b2ae958 The same rationale applies to MTP. https://gitlab.gnome.org/GNOME/gvfs/-/issues/497
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gvfsbackendmtp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index 176b3528..fd297be1 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -1245,6 +1245,7 @@ get_storage_info (LIBMTP_devicestorage_t *storage, GFileInfo *info) {
g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE, storage->FreeSpaceInBytes);
g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_SIZE, storage->MaxCapacity);
g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_FILESYSTEM_TYPE, "mtpfs");
+ g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW, G_FILESYSTEM_PREVIEW_TYPE_NEVER);
g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE, FALSE);
g_debug ("(II) get_storage_info done.\n");