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

Snap compatibility — SNAP_USER_DATA must be used if defined. #75

Closed
develar opened this issue Jul 10, 2019 · 5 comments
Closed

Snap compatibility — SNAP_USER_DATA must be used if defined. #75

develar opened this issue Jul 10, 2019 · 5 comments

Comments

@develar
Copy link

develar commented Jul 10, 2019

Please see anujdatar/onenote-desktop#7

Access to home is forbidden if electron app is packed as snap. SNAP_USER_DATA must be used if defined.

@sindresorhus
Copy link
Owner

sindresorhus commented Jul 10, 2019

This should really be opened on Electron as I’m just using the userData directory provided by Electron:

const defaultCwd = (electron.app || electron.remote.app).getPath('userData');

@develar
Copy link
Author

develar commented Jul 10, 2019

Thanks for quick reply, you are right, it should be fixed in electron-builder. electron-userland/electron-builder#4038

@develar develar closed this as completed Jul 10, 2019
@anujdatar
Copy link

thanks for the quick replies guys.

@develar
Copy link
Author

develar commented Jul 10, 2019

@sindresorhus
Copy link
Owner

@develar See: npm/write-file-atomic#49

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 a pull request may close this issue.

3 participants