From ebc61e107398704b69fb326b9fcece81a3be9e70 Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Thu, 7 Dec 2017 13:42:45 +0100 Subject: backend: Fix querying of thumbnail::failed attribute The thumbnail::failed would previously only be set if thumbnail::path was included in the query, so querying for just thumbnail::failed would return no results. This fixes the behaviour of "gio info -a thumbnail::failed URI". https://bugzilla.gnome.org/show_bug.cgi?id=791325 --- daemon/gvfsbackend.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'daemon/gvfsbackend.c') diff --git a/daemon/gvfsbackend.c b/daemon/gvfsbackend.c index 0ba19882..b9096033 100644 --- a/daemon/gvfsbackend.c +++ b/daemon/gvfsbackend.c @@ -583,8 +583,10 @@ g_vfs_backend_add_auto_info (GVfsBackend *backend, } if (uri != NULL && - g_file_attribute_matcher_matches (matcher, - G_FILE_ATTRIBUTE_THUMBNAIL_PATH)) + (g_file_attribute_matcher_matches (matcher, + G_FILE_ATTRIBUTE_THUMBNAIL_PATH) || + g_file_attribute_matcher_matches (matcher, + G_FILE_ATTRIBUTE_THUMBNAILING_FAILED))) get_thumbnail_attributes (uri, info); } -- cgit v1.2.1