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
electron 6: app.getPath('logs') throws error on Windows #19543
Comments
You should call |
@MareikeTaeubner if you read our breaking changes notes you'll see that that's the case: no default log path is set becuase that created issues with portability so you need to call |
@DragDay7 @codebytere Ah, I see. Thank you very much for explaining. I seem to have misunderstood this in the release notes and the documentation (I somehow expected to get |
@codebytere Hey guys, I also came across this issue. When reading the docs one can be lead to assume that it's safe to call
Shouldn't the docs also be adjusted? |
Preflight Checklist
Issue Details
Expected Behavior
Function returns the path to the logs directory like electron 5.0.8 does:
Actual Behavior
Function throws an error:
To Reproduce
app.getPath('userData')
worked fine so it does seem like a logs specific problem.Additional Information
May be related to #15877 but I'm not sure, since this is on Windows.
The text was updated successfully, but these errors were encountered: