! 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 !
Support for the XDG Base Directory Specification.
Status:
RESOLVED: FIXED

Comments

Description Edênis Azevedo 2018-10-26 03:19:03 CEST
Created attachment 8062 
Move thumbnails location to ${XDG_CACHE_HOME:-$HOME/.cache}/thumbnails

Hello!

Exo uses the folder "$HOME/.thumbnails" to save/read thumbnails from. I would like to change that to "${XDG_CACHE_HOME:-$HOME/.cache}/thumbnails" to support the XDG Base Dir Spec [1]. Other components from XFCE already support it (thunar, xfdesktop - they both use this location for thumbnails).

Some background from this request: I was working on cleaning my home directory from dot dirs, when I was trying to discover who was creating the $HOME/.thumbnails folder. It had this weird behaviour, where I opened whiskermenu (nothing created), then browsed some categories and, only now, the folder was created. My first attempt was to check for specific thumbnails images (like the "About Me" icon) and then tried to move from there. After going through the whiskermenu source code, the garcon source and checking how it was being done in thunar, I decided to clone all repos from the github mirror and run a grep searching from ".thumbnails". I was surprised that it was this component that I needed to explore. I was 99% sure it was the whiskermenu.

Anyway, It is only 2 lines of code, as you can check the attached patch. I am using this patch right now and I believe everything should be working as intended.


[1] https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
Comment 1 Git Bot editbugs 2019-01-11 02:39:33 CET
Edênis Azevedo referenced this bugreport in commit 2cb0c01f282657471c1d5a667270eb48ee35aac5

Support for the XDG Base Directory Specification for thumbnails (bug #14799)

https://git.xfce.org/xfce/exo/commit?id=2cb0c01f282657471c1d5a667270eb48ee35aac5
Comment 2 Sean Davis editbugs 2019-01-11 02:40:05 CET
Great catch, and thanks for the patch! Applied in the above commit.

Bug #14799

Reported by:
Edênis Azevedo
Reported on: 2018-10-26
Last modified on: 2019-01-11

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Attachments

Additional information