[gvfs/497-g_file_attribute_filesystem_use_preview-is-not-set-consistently: 5/5] mtp: Use G_FILESYSTEM_PREVIEW_TYPE_NEVER




commit f77442ce466cb8005537f266b326ccdfda4509fd
Author: António Fernandes <antoniof gnome org>
Date:   Mon Dec 14 19:45:23 2020 +0000

    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

 daemon/gvfsbackendmtp.c | 1 +
 1 file changed, 1 insertion(+)
---
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");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]