question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to launch electron app in linux

See original GitHub issue

Describe the bug I am trying to launch electron app using npm run electron:serve in linux but is not working. But in Winodows and Mac is working.

To Reproduce Steps to reproduce the behavior:

run npm run electron:serve

Expected behavior Launching Electron works.

Screenshots Screen Shot 2019-12-06 at 2 41 13 PM It never launch the app on linux.

Environment (please complete the following information):

  • OS and version: Kali GNU/Linux and version: 2019.3
  • node version: v12.13.1
  • npm version: 6.12.1
  • yarn version (if used):
  • vue-cli-plugin-electron-builder version : 1.4.3
  • electron version: 5.0.12
  • other vue plugins used:
  • custom config for vcp-electron-builder:
  • (if possible) link to your repo:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nklaymancommented, Jan 10, 2021

@hatsantos see this link for more details on the purpose of that command. The page is for puppeteer but the issue is the exact same as Electron as both use Chromium, which is causing the issue.

0reactions
hatsantoscommented, Jan 6, 2021

I don’t use Linux daily (Windows Dev) but now I need to build and app for Linux using Electron.

I am facing a similar issue… The app works when running only the “webapp”, the build is done successfully but when trying to open the app nothing happens, not even the splash screen appears on the screen.

Since I’m not a regular Linux user, can I ask what exactly does the command:

sudo sysctl -w kernel.unprivileged_userns_clone=1

How can I rollback the previous command? Did not tested the command (do not want to break my Linux installation or anything…)

Do my app users also need to do this?

I’m using a virtual machine (VirtuaBox) with Ubuntu 20.10 to build and test the app.

My Electron version is 10.2.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

electron-rebuild "Unable to find Electron app ..." - Stack Overflow
Another important thing is, just check once the dependencies by running command npm list --depth=0 and confirm that electron is there. Share.
Read more >
Re: iMX8QM: Unable to launch electron js GUI appli...
I am working on electron js application (.AppImage) porting for cross platform (arm64). I cross compiled and it is executed but it is...
Read more >
A Comprehensive Guide to Building and Packaging an ...
As we look at each one we'll be trying to package an app for Mac, Windows, and Linux. The Electron Quick Start Guide...
Read more >
Common Configuration - electron-builder
npmRebuild = true Boolean - Whether to rebuild native dependencies before starting to package the app. buildNumber String | “undefined” - The build...
Read more >
Building your First App | Electron
Electron apps are scaffolded using npm, with the package.json file as an entry ... Electron can run in: win32 (Windows), linux (Linux), and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found