Whats up with fork / spawn within Electron?


#1

So, I posted a question earlier (Window.open does not work when main process has forked children).

But the problem really seems to happen within spawn/forking of child processes…

If i do NOT package my app, I have to use spawn to make a child process work, otherwise electron cannot open a secondary window (the problem where the first mentioned question is about)

but if i DO package the app, I have to use fork otherwise node cannot find the child file path. But if I use fork, then I cannot open a secondary window with window.open(url)

So the question really is, what is up with Electron and child processes?? Is there some kind of quirk that I have to know??

Thanks!


#2

A post was merged into an existing topic: Window.open does not work when main process has forked children


#3