Platform: Linux
If you do not specify loadUrl when starting the window, it may make it impossible to open the window on Linux (Debian). The application simply closes, although this does not happen on Windows.
A temporary solution:
builder.WebHost.UseUrls("http://localhost:20045");
...
var browserWindow = await Electron.WindowManager.CreateWindowAsync(new BrowserWindowOptions
{
Width = 1152,
Height = 940,
}, "http://localhost:20045");
Platform: Linux
If you do not specify loadUrl when starting the window, it may make it impossible to open the window on Linux (Debian). The application simply closes, although this does not happen on Windows.
A temporary solution: