Skip to content

Use LOCALAPPDATA for cache when on Windows - #90

Merged
chrisroberts merged 2 commits into
spox:developfrom
webframp:windows/localappdata
Jan 14, 2017
Merged

chrisroberts merged 2 commits into
spox:developfrom
webframp:windows/localappdata

Conversation

@webframp

Copy link
Copy Markdown
Contributor

It is common to use LOCALAPPDATA for this type of thing on windows and
this avoids cases where user HOME is unset. When HOME is unset on
windows it is resolved to HOMEDRIVE\HOMEPATH, which can be a network
path and results in terrible performance for batali.

Sorry, no tests. Wasn't sure what you'd want in that regard in the command_spec.rb.

It is common to use LOCALAPPDATA for this type of thing on windows and
this avoids cases where user HOME is unset. When HOME is unset on
windows it is resolved to HOMEDRIVE\HOMEPATH, which can be a network
path and results in terrible performance for batali.
@webframp

Copy link
Copy Markdown
Contributor Author

Related issue: electron/electron#1404

@webframp

webframp commented Jan 6, 2017

Copy link
Copy Markdown
Contributor Author

any way I can improve this or assist with batali maintenance?

Still default back to Dir.home if LOCALAPPDATA is unset
@webframp
webframp force-pushed the windows/localappdata branch from cdffee3 to 435014d Compare January 12, 2017 20:41

@chrisroberts chrisroberts left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants