diff options
author | António Fernandes <antoniof@gnome.org> | 2020-12-14 19:45:23 +0000 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2020-12-18 10:42:00 +0000 |
commit | f77442ce466cb8005537f266b326ccdfda4509fd (patch) | |
tree | 779a34a99b53c848d3c83b7d339a23dea91151fe | |
parent | 861d56a182ab4a88261defa0e57b698d4abbac2e (diff) | |
download | gvfs-497-g_file_attribute_filesystem_use_preview-is-not-set-consistently.tar.gz |
mtp: Use G_FILESYSTEM_PREVIEW_TYPE_NEVER497-g_file_attribute_filesystem_use_preview-is-not-set-consistently
gphoto2 does this since commit 983186766060ec82e260f8cd9a5160b93b2ae958
The same rationale applies to MTP.
https://gitlab.gnome.org/GNOME/gvfs/-/issues/497
-rw-r--r-- | daemon/gvfsbackendmtp.c | 1 |
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"); |