Skip to content

Electron 6.0.0+ does not launch in Windows 10 Dark Mode #378

@caesar

Description

@caesar

Describe the bug
When using vue-cli-plugin-electron-builder with the Electron 6.0.0, it hangs and Electron is not launched if Windows 10's dark mode is enabled. It works fine in light mode.

This is due to a bug introduced in [email protected] which causes Electron to hang on launch in Win10 dark mode if any dev tools extensions are installed.
VCPEB installs Vue.js Devtools automatically, triggering this bug.

To Reproduce
Steps to reproduce the behaviour:

  1. Ensure Windows "choose your color" setting is set to "Dark".
  2. vue create test (accept all defaults)
  3. cd test
  4. vue add electron-builder (accept all defaults)
  5. npm i [email protected]
  6. npm run electron:serve

Expected behaviour
Electron should launch regardless of whether Windows is in Light or Dark mode.

Environment

  • OS and version: Windows 10 Home 1903
  • node version: 12.7.0
  • npm version: 6.10.0
  • yarn version (if used): n/a
  • vue-cli-plugin-electron-builder version: 1.3.6
  • electron version: 6.0.0
  • other vue plugins used: none
  • custom config for vcp-electron-builder: none
  • (if possible) link to your repo: n/a

Additional context
See electron/electron#19468 for the Electron bug which causes this issue.

Workaround for now is to disable the automatic installation of Vue.js Devtools in background.js, and delete your app's data directory in %appdata% to remove already-installed devtools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions