Electron.net: linux - electron app when close window dont finish all process

Created on 25 Mar 2019  路  1Comment  路  Source: ElectronNET/Electron.NET

Hi, when i run the electron app, and i close the window, dont close all process, for example, if i run it with terminal, in the terminal the process still running.

But in Window, this dont happens. You can help me pls.

A kind regards.

question

Most helpful comment

This is the normal electron architecture. You have a main process and a renderer process. Each window runs on the renderer process. The main process continues. It may be that your application does not need active windows.

The following command ends everything:

Electron.App.WindowAllClosed += () => Electron.App.Exit();

>All comments

This is the normal electron architecture. You have a main process and a renderer process. Each window runs on the renderer process. The main process continues. It may be that your application does not need active windows.

The following command ends everything:

Electron.App.WindowAllClosed += () => Electron.App.Exit();

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ernestotw85 picture ernestotw85  路  3Comments

AykutToprak picture AykutToprak  路  4Comments

graylobo picture graylobo  路  5Comments

thnk2wn picture thnk2wn  路  4Comments

cdespinosaagmx picture cdespinosaagmx  路  3Comments