-
-
Notifications
You must be signed in to change notification settings - Fork 747
Electron 38.2.0+ Not Supported on Linux #1054
Copy link
Copy link
Open
Labels
Description
While trying to figure out why my app won't launch on Linux, I noticed that this seems to be related to the Electron version. I narrowed it down to the version 38.2.0 and up after which the app no longer works. Anything below (38.1.2 and below) works as intended. I'm unsure, what the breaking change is, but I can confirm that later versions work on Windows and macOS without issues.
- NuGet Version: 0.4.1
- Electron Version: 41.0.3
- Electron Builder Version: 26.8.1
- Framework: net10.0
- Target: linux-arm64
- IDE: VSCodium 1.105.17075
Restore and build work fine, the app seems to boot up fine, but the window never gets created, and the bridge is immediately disconnected.
parallels@ubuntu-gnu-linux-24-04-3:~/repos/tmp$ dotnet run -r linux-arm64
Using launch settings from /home/parallels/repos/tmp/Properties/launchSettings.json...
Building...
GatherBuildInfo: No testhost detected: tmp
Probe scored for launch origin: DotNet 2 vs. 0 Electron
Probe scored for package mode: Unpackaged 3 vs. 0 Packaged
Evaluated StartupMethod: UnpackedDotnetFirst
[StartInternal]: startCmd: /home/parallels/repos/tmp/bin/Debug/net10.0/linux-arm64/.electron/node_modules/electron/dist/electron
[StartInternal]: args: main.js -unpackeddotnet --trace-warnings -electronforcedport=8000 /home/parallels/repos/tmp/bin/Debug/net10.0/linux-arm64/tmp.dll
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:8001
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: /home/parallels/repos/tmp
|| Entry!!!:
|| unpackedelectron! dir: /home/parallels/repos/tmp/bin/Debug/net10.0/linux-arm64/.electron
|| [64455:0403/181113.928107:ERROR:ui/gtk/gtk_ui.cc:259] Schema org.gnome.desktop.interface does not have key font-antialiasing
|| Electron Socket IO (forced) Port: 8000
|| Electron Socket: starting...
|| Electron Socket: listening on port 8000 at 127.0.0.1
[StartInternal]: after run:
|| Electron Socket: connected!
|| Electron Socket: loading components...
|| Electron Socket: startup complete.
BridgeConnector connected!
BridgeConnector disconnected! //<-- this happens immediately
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
Steps to reproduce:
- Create a new blazor web app (
dotnet new blazor) - Add the
ElectronNET.CoreandElectronNET.Core.AspNetNuGet packages version0.4.1 - Add
UseElectron()to the builder, etc. (follow getting started from Wiki) - Add the following to the csproj file:
<PropertyGroup Label="ElectronNetCommon">
<ElectronVersion>38.2.0</ElectronVersion>
<ElectronBuilderVersion>26.8.1</ElectronBuilderVersion>
</PropertyGroup>The version of the electron-builder seems to not affect the output.
Reactions are currently unavailable