-
Notifications
You must be signed in to change notification settings - Fork 60
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
Remove dependency on 'remote' module #134
base: master
Are you sure you want to change the base?
Conversation
…e from renderer process, add obligatory 'init' function.
Hi @theArina, thanks for scaffolding this all out. This is quite a bit more involved than I was envisioning, and it adds a whole new step to using the lib ( Attempting to eliminate friction, is there any reason that Also, I'm curious as to why your pull request removes |
@nathanbuchar, yes, there was a reason for removing dist and .npmignore, but just to be able to use that fork, you could just put it back like it was. Generally, you could just take an idea of this pull request and make it as you consider better. |
Currently building a variation of this into the lib right now, but one thing I noticed: doesn't this require that electron-settings is initialized in the main process before it can be used in the render process? As it stand right now, electron-settings can be used whenever and wherever, without having a dependency of first initializing it in the main process. Adding this in would be a breaking change, and would require bumping to v5. All electron settings needs to use At the very least, has calling |
@nathanbuchar, okay, i'm glad to help you somehow, but i'm really just a user of your library who needed to update Electron to the last version. So, unfortunately i don't know if |
hey @nathanbuchar, just wanted to check in here to see if you have any updates on this PR or your own implementation? I have been thinking of working around this issue but can not think of a way to do so without the |
@nathanbuchar @theArina All that would be needed is a new method to be able to provide a custom user data path, and for sure avoid any error caused by the non-existence of the remote module. Reference: |
#133
Here is my fork, i was making it hastily and expect it to be edited. The main idea is to replace 'remote' module with ipc messaging as it is advised in Electron 7.
To make it work now you should call settings.init() in the main process.