[swift-corelibs-dev] Implementing HTTPCookieStorage
anthony.parker at apple.com
Wed Nov 16 16:15:38 CST 2016
> On Nov 14, 2016, at 12:56 PM, Will Stanton <willstanton1 at yahoo.com> wrote:
> Hello Tony,
> Thanks for the reply. About XDG_DATA_HOME, the variable is undefined on my desktop-less server, and I think many processes still have their own save locations.
> Still, I can believe its used in a lot of places (https://github.com/search?q=XDG_DATA_HOME&type=Code&utf8=✓) and am not opposed to it!
> Perhaps SEARCH/$EXECUTABLE_NAME/Preferences.plist would be good place and format for NSUserDefaults with SEARCH = getenv(XDG_DATA_HOME) then ~/.config?
> What about the path for cookies+caches?
I’m just reading this spec for the first time, but it looks like it accounts for that:
> • There is a single base directory relative to which user-specific non-essential (cached) data should be written. This directory is defined by the environment variable $XDG_CACHE_HOME.
Overall the spec looks reasonable and seems to be close to what we we would need.
A great next step would be to file a JIRA and look for volunteers who want to help implement this in SCL-Foundation.
> Will Stanton
>> On Nov 14, 2016, at 2:37 PM, Tony Parker via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
>> Off-list, someone pointed me here:
>> and here:
>> Noting that there seems to be a growing consensus for $HOME/.config.
>> Is this spec beginning to be used in the real world?
More information about the swift-corelibs-dev