After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 675168 - prepare for thumbnails to move to XDG_CACHE_HOME
prepare for thumbnails to move to XDG_CACHE_HOME
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-04-30 16:18 UTC by William Jon McCann
Modified: 2014-01-08 13:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Update to use XDG cache home for thumbnails (1.48 KB, patch)
2012-04-30 16:51 UTC, William Jon McCann
reviewed Details | Review

Description William Jon McCann 2012-04-30 16:18:15 UTC
We are in the process of updating the Thumbnail spec to change the cache
location from ~/.thumbnails -> $XDG_CACHE_HOME/thumbnails.

./glib/gio/glocalfileinfo.c needs to be updated.
Comment 1 William Jon McCann 2012-04-30 16:51:58 UTC
Created attachment 213121 [details] [review]
Update to use XDG cache home for thumbnails
Comment 2 Matthias Clasen 2012-05-01 03:13:08 UTC
Review of attachment 213121 [details] [review]:

Should we check for the existence of ~/.cache/thumbnails and fall back if it doesn't exist ?
Comment 3 Cosimo Cecchi 2012-06-13 14:53:48 UTC
(In reply to comment #2)
> Review of attachment 213121 [details] [review]:
> 
> Should we check for the existence of ~/.cache/thumbnails and fall back if it
> doesn't exist ?

I guess this depends on whether we end up migrating existing thumbnails to the new location or not. Since the gnome-desktop patch doesn't seem to do it, we should probably fall back...it would also make things work better in case mixed versions of gnome-desktop and glib are used.
Comment 4 Matthias Clasen 2012-06-13 18:46:06 UTC
I decided to keep it simple for now and just push the patch as-is
Comment 5 Jussi Kukkonen 2014-01-08 13:08:43 UTC
Rygel (with MediaExport backend) is now basically broken because
 * GLib tells Rygel the thumbnail does not exist
 * Rygel tells Tumbler to generate the thumbnail
 * Tumbler will re-generate the thumbnail in a location where GLib (and by
extension Rygel) won't find it
So we're burning a lot of cycles and still not showing any thumbnails :(


Was there any plan on how systems should have been upgraded? Are distros supposed to do symlinks ($HOME/.thumbnails -> $XDG_USER_CACHE/thumbnails) until all software is updated to the new directory, or where do I need to file bugs about it?