Imbuf: Change thumbnail caching location #107298

Open
Ankit Meel wants to merge 1 commits from ankitm/blender:ankitm/thumbn into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
Ankit Meel 68b540f531 Imbuf: Change thumbnail caching location
buildbot/vexp-code-patch-coordinator Build done. Details
New paths are in decreasing order of priority.

Windows
Old: %CSIDL_PROFILE%\.thumbnails
New: note the removal of leading period
%USERPROFILE%\AppData\Local\Blender Foundation\Blender\Cache\thumbnails
BKE_tempdir_base\Blender Foundation\Blender\Cache\thumbnails

Linux
Old: $XDG_CACHE_HOME/thumbnails or $HOME/.cache/thumbnails
New:
$XDG_CACHE_HOME/thumbnails
$HOME/.cache/blender/thumbnails
BKE_tempdir_base/blender/thumbnails/

macOS
Old: $HOME/.thumbnails
New: note the removal of leading period: makes the folder user visible
~/Library/Cache/Blender/thumbnails
BKE_tempdir_base/Blender/thumbnails

BKE_appdir_folder_caches added recently replaces the manual cache
folder finding done here.
Simplify char array handling also.

-----------

It was previously at https://archive.blender.org/developer/differential/0013/0013214/index.html
This time undefined thumbnail also and put it in BLI_path_join call.
2023-04-24 18:14:27 +05:30