thumbnailers: Allow a local cache directory with bubblewrap
I've been working on a thumbnailer for multiple desktop environments called "ROM Properties". One of its features is the ability to download cover art for certain games from an online database. With bubblewrap enabled, this functionality is broken, since the cover art is downloaded to ~/.cache/rom-properties/
, and this directory is not accessible.
One possible option for fixing this is adding a list of allowed paths in the .thumbnailer file. For example:
[Thumbnailer Entry]
AllowPath=${XDG_CACHE_HOME}/.rom-properties
Note that XDG_CACHE_HOME might not be set by the host environment, so it should be provided by GnomeDesktopThumbnailFactory.
Relevant bug from the rom-properties project: https://github.com/GerbilSoft/rom-properties/issues/239