Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not create the folder passed to app.setPath #5237

Merged
merged 1 commit into from Apr 21, 2016
Merged

Conversation

zcbenz
Copy link
Member

@zcbenz zcbenz commented Apr 21, 2016

When calling app.setPath, if the path passed to it doesn't exist, a folder would be created at that path. This causes problem when users want to change the default userData, since Electron always creates a folder at the default userData location.

This PR makes sure app.setPath has no side effect on filesystem, fixes #2668.

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.

default userData directory is created in the default location when using app.setPath()
1 participant