You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to construct a solution with the existing API?
I don't believe so.
Describe the solution you'd like to see.
I think it would be sensible to some additional APIs used for these, rather than the existing myApp.Storage().RootURI().Path(), possibly have a CacheURI, ConfigURI, DataURI and StateURI.
I believe the RootURI could point at the ConfigURI for the current version so as to be 100% compatable. And the RootURI could be deprecated in v3 or when desired if you wish. For other platforms, they can just point at the same place.
The text was updated successfully, but these errors were encountered:
To add to this, I wonder if the app storage directories should just be created at the root with the appID (~/.config/com.someapp/, ~/.cache/com.someapp/, etc) instead of being nested under a fyne directory. Users who go looking for the config files (linux users often do this) may not find it since they're not expecting it to be under a fyne directory
I just mentioned Macs as @dweymouth mentioned them, I can update the issue to reflect the Mac stuff, or remove it?
Well, the title mentions it but the body does not explain. If the source is a chat elsewhere the relevant info should have be pasted in here for people to follow. I can see from the document that cache applies to both. Not sure about data or state on Mac.
To add to this, I wonder if the app storage directories should just be created at the root with the appID
Just be sure we don't simply change location in an upgrade - would result in a lot of lost data.
Checklist
Is your feature request related to a problem?
According to the XDG spec, I should be able to use cache and data directories.
https://specifications.freedesktop.org/basedir-spec/latest/index.html
This is also an issue for Macs too, but with their standards at:
https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFileSystem/Articles/WhereToPutFiles.html
Is it possible to construct a solution with the existing API?
I don't believe so.
Describe the solution you'd like to see.
I think it would be sensible to some additional APIs used for these, rather than the existing
myApp.Storage().RootURI().Path()
, possibly have aCacheURI
,ConfigURI
,DataURI
andStateURI
.I believe the
RootURI
could point at theConfigURI
for the current version so as to be 100% compatable. And the RootURI could be deprecated in v3 or when desired if you wish. For other platforms, they can just point at the same place.The text was updated successfully, but these errors were encountered: