How do I run an electron in Ubuntu?

How do I run an electron in Ubuntu?

How to Install and Set Up Electron on Ubuntu

  1. Install Node. js.
  2. Update NPM(Optional) Node Package Manager(NPM) is automatically installed with the installation of Nodejs.
  3. Install Electron globally.
  4. Create an Electron project.
  5. 4.1 Initialize the project.
  6. 4.2 Create a View.
  7. 4.3 Create an Index file.
  8. Running our application.

How do I open GUI in WSL Ubuntu?

Run Linux GUI apps

  1. sudo apt update. Install Gedit.
  2. sudo apt install gedit -y. To launch your bashrc file in the editor, enter: gedit ~/.bashrc.
  3. sudo apt install gimp -y. To launch, enter: gimp.
  4. sudo apt install nautilus -y. To launch, enter: nautilus.
  5. sudo apt install vlc -y. To launch, enter: vlc.

Can WSL launch GUI?

Microsoft brings support to run Linux GUI apps on Windows 10 through WSL, and here’s how. Linux GUI apps can be installed using the sudo apt-get install command inside the WSL distro. Once the GUI app installed, you can launch from the Start menu or using a command.

Does Electron work on Ubuntu?

The prebuilt binaries of Electron are built on Ubuntu 18.04. Ubuntu 14.04 and newer. Fedora 24 and newer.

Is teams an Electron app?

Today Microsoft Teams uses Electron. Electron is a framework for creating desktop applications with web technologies like JavaScript, HTML, and CSS. It’s popular with some developers for its flexibility, but it’s also a well-documented memory hog.

Is Spotify an Electron?

Spotify is an Electron app meaning that it’s just Chrome running a fancy website pretending to be an app. So this RAM is in fact used by Chrome :D.

Why is electron not able to run in WSL?

Electron needs to open a chrome browser window. So, when you run it from WSL using a node.js that was installed in WSL, I guess it would try to start the chromium browser for Ubuntu, which will not work out of the box, because: Microsoft doesn’t support graphical programs on WSL.

How to run an electron app in Linux?

The only way to use whatever app you want is to run it in Linux. Personally I commonly use Sublime Text and IntelliJ IDEA for code editing. So I installed them into the WSL environment, see for example the Linux instructions for Sublime Text.

Can a WSL app be run in Linux?

It’s best to think of your WSL environment as a totally separate place that simply co-exists alongside Windows. They’re like two cars side by side on the highway. The only way to use whatever app you want is to run it in Linux. Personally I commonly use Sublime Text and IntelliJ IDEA for code editing.

How to install prebuilt electron binary on Windows?

Make sure you have Node.js & npm installed on your Windows machine (you can remove them afterwards) Open cmd.exe, move to your project directory and run npm install electron –save-dev. This will install the Windows version of the prebuilt Electron binary instead of the Linux one, which would occur if you try to install from WSL.