19

I would like to find out which version of Electron an Electron desktop app like Signal Desktop or Visual Studio Code is using. Is there a simple way - like entering a command in the Development Console?

Thanks! Johannes

(Why? I would like to see if it is affected by bugs like https://www.trustwave.com/Resources/SpiderLabs-Blog/CVE-2018-1000136---Electron-nodeIntegration-Bypass/)

2
  • 1
    unless the application implements something like that (like a --version arg) or an info page in the gui, you probably can not, but if it is open source (like your examples), you can have a look at github. You will find it in the package.json under devDependencies (e.g. 1.8.4 for Signal desktop app)
    – Rhayene
    May 15, 2018 at 12:08
  • Thanks. It should be this package.json for the current release. May 24, 2018 at 10:00
27

You can, if the App enabled developer tools and enabled nodeIntegration. take VS Code as an example:

open the Developer Tools, in the console tab, type

process.versions.electron

documentation here: https://electronjs.org/docs/api/process

or try parsing version from userAgent string

navigator.userAgent.match(/Electron\/([\d\.]+\d+)/)[1]

enter image description here

2
8

Open the Developer tools and in the Console tab type:

navigator.userAgent

For example in the Discord app I'm getting:

Mozilla/5.0 ... Electron/9.3.5 ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.