diff options
author | António Fernandes <antoniof@gnome.org> | 2021-01-17 10:34:05 +0000 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2021-01-22 14:59:36 +0000 |
commit | 6a3086498568934aae193e83e4c164c77eab8f4a (patch) | |
tree | 0b1e065a619c57c49494ae783e4bb95c4c77cbef /daemon | |
parent | 5a63475db8b97e2cae3583371630df04c603f512 (diff) | |
download | gvfs-6a3086498568934aae193e83e4c164c77eab8f4a.tar.gz |
afc: Set G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS
filesystem::preview-type used to be IF_LOCAL for this backedn but it
has been unset by commit a71469c79fd31adfc594a55afd29a7ce2202b270
The commit message says it should be treated as remote filesystems.
However, filesystem::remote is set to FALSE, so application would
still interpret this as local for previewing purposes.
Set filesystem::preview-type to get the result expected by that commit.
https://gitlab.gnome.org/GNOME/gvfs/-/issues/497
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gvfsbackendafc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c index 88817703..9c0d71fc 100644 --- a/daemon/gvfsbackendafc.c +++ b/daemon/gvfsbackendafc.c @@ -2186,6 +2186,7 @@ g_vfs_backend_afc_query_fs_info (GVfsBackend *backend, g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_FILESYSTEM_TYPE, "afc"); g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE, FALSE); + g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW, G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS); if (!self->connected) { |