flatpak
flatpak copied to clipboard
[Feature request]: app cache folder location
Checklist
- [X] I agree to follow the Code of Conduct that this project adheres to.
- [X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Suggestion
Hello!
By default flatpak creates '$HOME/.var/app/[APPNAME]/cache' folder for each app. Those folders can be REALLY big. For example AndroidStudio cache folder size of 4GB.
I suggest to use system wide folder for caching, so it can be configured to use additional drive for caching not main SSD.
Use '$HOME/.cache/flatpak/apps/[APPNAME]' instead of '.var'?
~/.cache is not in the sandbox. Using a "global" cache break the sandbox.
Maybe application package (system libraries, user data) can be moved to custom path (sdcard)? Can flatpak app can be mounted dynamically when sdcard inserted. Which also will reduce size of /var/lib/flatpak.
This appears to be a duplicate of #5407, or at least the desired outcome is the same.
It's not exactly the same requested location (~/.var/cache vs ~/.cache), but yes, this is basically the same request.