O'Reilly logo

Developing an Electron Edge by Max Gfeller, Troy Mott, Adam Lynch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. The Different Processes

As you’ve seen in the Introduction, building a simple Electron application is actually easy! You’ve already used the two different types of processes that Electron knows: the main process and the renderer process. In this chapter you will learn about both processes as you build a reference to one of the earliest and most basic computer games. So let’s get started!

The Main Process

You’ve already seen the first type of process, the main process in action. This is the one defined in the package.json file as your main process (here is an example):

{
  [...]
  "main": "app.js",
  [...]
}

The main process has direct access to all of the modules that provide certain desktop-specific logic, such as Auto Updating, Crash ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required