! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
thumbnail cache for wallpaper
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfdesktop
Component:
General

Comments

Description dylix98 2010-07-02 20:04:40 CEST
my wallpaper directory is a little larger than it should be, so I made a patch that caches the thumbnail, saves me about 2 minutes w/ 400mb or so...
Comment 1 dylix98 2010-07-02 20:05:20 CEST
Created attachment 3019 
4.6.2 patch
Comment 2 dylix98 2010-07-02 20:05:40 CEST
Created attachment 3020 
git patch
Comment 3 dylix98 2010-07-02 20:16:54 CEST
Created attachment 3021 
uploaded wrong patch for git
Comment 4 Jérôme Guelfucci editbugs 2012-02-20 09:24:11 CET
Maybe a better way to solve this would be to use tumbler now that it provides thumbnails for the images on the desktop, it would avoid maintaining a second thumbnailing method and caching solution.

I'm adding Eric as cc, as he wrote the tumbler support for xfdesktop.
Comment 5 Eric Koegel editbugs 2013-02-17 17:15:15 CET
Created attachment 4923 
Add thumbnail service support to xfdesktop-settings

This patch adds support for using the thumbnail code in the settings app. Let me
know if you find someway to break it.
Comment 6 Jérôme Guelfucci editbugs 2013-02-24 20:51:46 CET
Your patch seems to work fine here, the first thumbnail takes a few seconds to appear though, the rest of them come really fast after that.

This is anyway definitely faster than the previous code. The fact that thumbnails are idle-loaded might look a bit weird, but loading all of them before opening the application is neither acceptable. Can you think about a better option?

Nice work!
Comment 7 Eric Koegel editbugs 2013-02-25 10:22:38 CET
Created attachment 4936 
Thumbnail service support to xfdesktop-settings

Thanks for testing it and the feedback.
This version should fix some of the initial delay. The intent of the timeout callback was only to pack a bunch of thumbnails in one thread rather than creating lots of threads. I tuned the timeout value down, I didn't intend to leave it that high. If this still is undesirable, I'll look into doing it another way.
Comment 8 Jérôme Guelfucci editbugs 2013-02-25 22:17:11 CET
The last patch is much faster. Here, the window appears then around one second later all thumbnails appear. Given that the window is useless without them, wouldn't it make sense to delay the window until we have enough thumbnails to fill the visible part of the icon view?

That would make the whole thing look more polished IMO.
Comment 9 Jérôme Guelfucci editbugs 2013-02-25 22:27:34 CET
In fact, the last patch does not work all the time. It may happen that the thumbnails don't appear (or only some of them) and that triggering an expose event is needed to get them shown.
Comment 10 Eric Koegel editbugs 2013-11-27 01:49:28 CET
With the merging of the eric/wallpaper-and-settings-improvements branch, xfdesktop-settings uses the dbus thumbnail service when available.

Bug #6536

Reported by:
dylix98
Reported on: 2010-07-02
Last modified on: 2013-11-27

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
2 users

Version

Attachments

4.6.2 patch (2.67 KB, patch)
2010-07-02 20:05 CEST , dylix98
no flags
git patch (5.81 KB, patch)
2010-07-02 20:05 CEST , dylix98
no flags
uploaded wrong patch for git (2.43 KB, patch)
2010-07-02 20:16 CEST , dylix98
no flags
Add thumbnail service support to xfdesktop-settings (15.70 KB, patch)
2013-02-17 17:15 CET , Eric Koegel
no flags
Thumbnail service support to xfdesktop-settings (20.97 KB, patch)
2013-02-25 10:22 CET , Eric Koegel
no flags

Additional information