-
Notifications
You must be signed in to change notification settings - Fork 596
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the requested feature
With the implementation of FLET_APP_STORAGE_DATA, flet started to create a folder for storage data. While I understand why the current solution is sub-optimal. (Not to say an absolute no go)
For me (on Linux) the folder seems to be created in the current user's document folder (I have tried to look in the flet source to find the logic behind this, but have not managed to find the relevant parts). Many Linux users (myself included) really dislike applications that litter the home directory like this. $HOME/Documents is there for users to (voluntarily) put files there, not for some random application to put data there.
Suggest a solution
Personally, I see two options here:
- Allow flet app developers to manually set the
FLET_APP_STORAGE_DATApath. This would allow them to add some kind of interaction for the user to agree (complicated to implement, might conflict with writing platform independent apps). - Use
XDG_DATA_HOMEand default to$HOME/.local/shareif not set. This would be the recommended path according to the XDG Base Directory Specification (Would prefer)
Screenshots
No response
Additional details
Other environment variables such as FLET_APP_STORAGE_TEMP already seem to xdg honour the specification correctly.