Skip to content

Commit 0f6020f

Browse files
committed
gnome-desktop-thumbnailer.c: Only attempt to thumbnail internally
if gdk-pixbuf actually supports the mime_type. Every failed external call was being fed to the internal pixbuf, triggering warnings when it didn't support the type.
1 parent 210cf97 commit 0f6020f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcinnamon-desktop/gnome-desktop-thumbnail.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ gnome_desktop_thumbnail_factory_generate_thumbnail (GnomeDesktopThumbnailFactory
12601260
}
12611261

12621262
/* Fall back to gdk-pixbuf */
1263-
if (pixbuf == NULL && !disabled)
1263+
if (!disabled && pixbuf == NULL && mimetype_supported_by_gdk_pixbuf (mime_type))
12641264
{
12651265
pixbuf = _gdk_pixbuf_new_from_uri_at_scale (uri, size, size, TRUE);
12661266

0 commit comments

Comments
 (0)