Can start on Windows but not on Linux?! #236

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

Originally created by @thamathar on GitHub (Nov 26, 2018).

Hello everyone.

I'm new to Electron so bare this in mind :D

I did all in Windows using Visual Studio 2017 and works without any problem on Windows, but when I pass the project into Linux (Ubuntu 18.04) I can't get this to start.

I did

dotnet restore
Did go without any problems.

dotnet electronize init
Did go without any problems.

But when I do

dotnet electronize start
I get this

owdasy@Antonio-VirtualBox:~/Electron/ElectronSecondApp/ElectronSecondApp$ dotnet electronize start Start Electron Desktop Application... Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core Copyright (C) Microsoft Corporation. All rights reserved. Restore completed in 71.24 ms for /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/ElectronSecondApp.csproj. Restore completed in 3.37 ms for /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/ElectronSecondApp.csproj. ElectronSecondApp -> /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/bin/Debug/netcoreapp2.0/linux-x64/ElectronSecondApp.dll ElectronSecondApp -> /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/bin/ Skip npm install, because node_modules directory exists in: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules Invoke electron - in dir: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/.bin /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: 1: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: MZ����@H��: not found /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: 2: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: Syntax error: Unterminated quoted string owdasy@Antonio-VirtualBox:~/Electron/ElectronSecondApp/ElectronSecondApp$

Originally created by @thamathar on GitHub (Nov 26, 2018). Hello everyone. I'm new to Electron so bare this in mind :D I did all in Windows using Visual Studio 2017 and works without any problem on Windows, but when I pass the project into Linux (Ubuntu 18.04) I can't get this to start. I did > dotnet restore Did go without any problems. > dotnet electronize init Did go without any problems. But when I do > dotnet electronize start I get this `owdasy@Antonio-VirtualBox:~/Electron/ElectronSecondApp/ElectronSecondApp$ dotnet electronize start Start Electron Desktop Application... Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core Copyright (C) Microsoft Corporation. All rights reserved. Restore completed in 71.24 ms for /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/ElectronSecondApp.csproj. Restore completed in 3.37 ms for /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/ElectronSecondApp.csproj. ElectronSecondApp -> /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/bin/Debug/netcoreapp2.0/linux-x64/ElectronSecondApp.dll ElectronSecondApp -> /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/bin/ Skip npm install, because node_modules directory exists in: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules Invoke electron - in dir: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/.bin /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: 1: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: MZ����@H��: not found /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: 2: /home/owdasy/Electron/ElectronSecondApp/ElectronSecondApp/obj/Host/node_modules/electron/dist/electron.exe: Syntax error: Unterminated quoted string owdasy@Antonio-VirtualBox:~/Electron/ElectronSecondApp/ElectronSecondApp$`
Author
Owner

@thamathar commented on GitHub (Nov 26, 2018):

It seams that there where missing some libs on linux, after running
sudo apt-get install build-essential clang libdbus-1-dev libgtk-3-dev \ libnotify-dev libgnome-keyring-dev libgconf2-dev \ libasound2-dev libcap-dev libcups2-dev libxtst-dev \ libxss1 libnss3-dev gcc-multilib g++-multilib curl \ gperf bison python-dbusmock

I could do dotnet electronize start without any problems

@thamathar commented on GitHub (Nov 26, 2018): It seams that there where missing some libs on linux, after running `sudo apt-get install build-essential clang libdbus-1-dev libgtk-3-dev \ libnotify-dev libgnome-keyring-dev libgconf2-dev \ libasound2-dev libcap-dev libcups2-dev libxtst-dev \ libxss1 libnss3-dev gcc-multilib g++-multilib curl \ gperf bison python-dbusmock` I could do dotnet electronize start without any problems
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#236