linux - electron app when close window dont finish all process #295

Closed
opened 2026-01-29 16:35:56 +00:00 by claunia · 1 comment
Owner

Originally created by @rrc845 on GitHub (Mar 25, 2019).

Originally assigned to: @GregorBiswanger on GitHub.

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.

Originally created by @rrc845 on GitHub (Mar 25, 2019). Originally assigned to: @GregorBiswanger on GitHub. 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.
claunia added the question label 2026-01-29 16:35:56 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (May 16, 2019):

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();

@GregorBiswanger commented on GitHub (May 16, 2019): 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();`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#295