-
Notifications
You must be signed in to change notification settings - Fork 2.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
[Feature] Hook into electron main master process #3364
Comments
I am not so sure... The startup sequence is really confusing, so maybe I'm wrong, but unless you specify What files were you thinking about modifying in particular? (the generated ones) |
FYI: only the bundled electron application has real forked processes. I am happy you are working on this, @bogthe. Make sure your |
@kittaakos but in the dev mode, we do require |
That is a different fork. We have the main electron process, we fork the backend from it, and the backend will fork cluster workers. |
So the backend is in fact forked away from the main process? (in dev mode) |
@bogthe on the topic of customizing the start up sequence somehow, I would agree that it is a good idea. We already drive the generators with infos in the But again, what kind of flow would you expect to see happening? (what to define, how is it triggered and executed?) |
@marechal-p @kittaakos thanks for replying so quickly! I was thinking of having an entra option in the
(Also that require is present only if there are packages with that option available as to not cram the code too much) Inside of
This in turn gives control to the packages to manage their messaging through Maybe there is a more elegant way of doing this but for a first implementation I think the code is mostly there for generating the file + code, and handling updates it's a good first step. |
Hi everyone!
I'm looking into adding updates through
electron-updater
into Theia and for this I need the code which checks for the updates to be running on electron's main master process.As it currently is, all backend modules are loaded on Electron's main worker process which causes the
electron-updater
module to break. There's a possibility other modules / packages / features will need to have code running from the same location so I wanted to make the hook (binding) into the master process as reusable as possible.I was thinking of:
package.json
file of packages (plugins) like the ones forfrontend
,backend
etc. and then require them in the master process;What do you think?
The text was updated successfully, but these errors were encountered: