From 0fd84c7031a6e58e17dc219e9d8c55fbb0244796 Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Fri, 18 Jul 2014 01:29:54 -0300 Subject: [PATCH] Fix missing thumbnail on xfdesktop when thumbler fails to create it. Need check if exist thumbnail file before emit THUMBNAIL_READY. Seems that thumber not returns the full path. So xfdesktop assumes two directories. Checked to see if the file exists in the first folder but not the second!. --- common/xfdesktop-thumbnailer.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/common/xfdesktop-thumbnailer.c b/common/xfdesktop-thumbnailer.c index 179e5b7..42dbb9c 100644 --- a/common/xfdesktop-thumbnailer.c +++ b/common/xfdesktop-thumbnailer.c @@ -565,11 +565,13 @@ xfdesktop_thumbnailer_thumbnail_ready_dbus(DBusGProxy *proxy, (char*)iter->data, thumbnail_location); - g_signal_emit(G_OBJECT(thumbnailer), - thumbnailer_signals[THUMBNAIL_READY], - 0, - iter->data, - thumbnail_location); + if(g_file_test(thumbnail_location, G_FILE_TEST_EXISTS)) { + g_signal_emit(G_OBJECT(thumbnailer), + thumbnailer_signals[THUMBNAIL_READY], + 0, + iter->data, + thumbnail_location); + } temp = iter->data; thumbnailer->priv->queue = g_slist_remove(thumbnailer->priv->queue, -- 1.9.3