Chapter 8. Further operating system integration and dynamically enabling menu items

This chapter covers

  • Showing files in the native operating system’s filesystem manager
  • Opening a file in the operating system’s default application for that file type
  • Modifying application and context menus dynamically
  • Opening the URLs in the default browser instead of the application itself

In addition to creating custom application modules, opening isolated browser window processes, and accessing native file dialogs in Electron, we can use the shell module to interact with the operating system.

How does your application know your system’s default browser for opening websites? If you want to open an image file in its default application, which application ...

Get Electron in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.