I also came across this issue a while ago, and tried SocialImageCache
(which is not striclty intended for this use, but does have exactly the functionality of caching remote images).
I never continued my search for a solution, but I believe the " privileged" part can be solved using Launcher permissions, placing a file in /usr/share/mapplauncherd/privileges.d/harbour-storeman/app-name.privileges
, and adding p
, and i
privileges:
/usr/bin/app-name,p,i
Never tried this, though
Anyway, perhaps one could use the code from libsocialcache/src/qml/generic at master · sailfishos/libsocialcache · GitHub, decouple it from all the Accounts stuff, and have a generic QML caching solution.