-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Stop using @electron/remote to obtain app.getPath() #4078
Conversation
915f4ad
to
c5daf5c
Compare
} | ||
} | ||
|
||
private static initMain(): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gets called for sure before initRenderer()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope so, it gets called in the main process whereas initRenderer
gets called in each frame.
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
- Initialize entire map in bootstrap() - Updated unit tests Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
215fca7
to
9a17097
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Signed-off-by: Sebastian Malton <sebastian@malton.name>
@jim-docker PTALA |
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton sebastian@malton.name
Fixes a bug where, for some reason,
remote.app
throws an error (during early lifetime of a frame). This fixes the issue by instead initializing the whole set inbootstrap()
which is called far enough along that it shouldn't observe that behaviour.The changes to
createStorage
are required because they were the initial error case, they now wait for bootstrap to callAppPaths.init()
and then they will initialize themselves.