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

app.getPath('userData') is called before user calls init #796

Closed
3 tasks done
timfish opened this issue Dec 4, 2023 · 0 comments · Fixed by #797
Closed
3 tasks done

app.getPath('userData') is called before user calls init #796

timfish opened this issue Dec 4, 2023 · 0 comments · Fixed by #797
Assignees

Comments

@timfish
Copy link
Collaborator

timfish commented Dec 4, 2023

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Electron SDK Version

4.15.0

Electron Version

All

What platform are you using?

All

Steps to Reproduce

export const sentryCachePath = join(app ? app.getPath('userData') : '', 'sentry');

Expected Result

This means that if users call app.setPath('userData', path) to set a custom user directory, Sentry will continue using the previous directory.

Actual Result

app.getPath should not be called until the SDKs init is called

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

Successfully merging a pull request may close this issue.

1 participant