flatpak icon indicating copy to clipboard operation
flatpak copied to clipboard

[Feature request]: app cache folder location

Open axet opened this issue 1 year ago • 3 comments

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'?

axet avatar Jun 21 '24 06:06 axet

~/.cache is not in the sandbox. Using a "global" cache break the sandbox.

hfiguiere avatar Jun 26 '24 02:06 hfiguiere

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.

axet avatar Jul 12 '24 14:07 axet

This appears to be a duplicate of #5407, or at least the desired outcome is the same.

csnover avatar Aug 15 '24 22:08 csnover

It's not exactly the same requested location (~/.var/cache vs ~/.cache), but yes, this is basically the same request.

chrisawi avatar Jan 15 '25 02:01 chrisawi