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



commit 1f5326bc38aaa7569fd87f7ebdbe4f5abd5193d1
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 42c2955e..ec4a3b3b 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -1217,6 +1217,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]