Preflight Checklist
Electron Version
19.x
What operating system are you using?
Windows
Operating System Version
Windows 11
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
An application should be in full control of the menu and thus the following code is taking startup CPU cycles when not needed:
|
const { setDefaultApplicationMenu } = require('@electron/internal/browser/default-menu') as typeof defaultMenuModule; |
At the very minimum allow an option to disable this when the application sets a menu anyway.
Actual Behavior
Electron seems to install a default menu which consumes time for no good reasons it seems:

Testcase Gist URL
No response
Additional Information
No response
Preflight Checklist
Electron Version
19.x
What operating system are you using?
Windows
Operating System Version
Windows 11
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
An application should be in full control of the menu and thus the following code is taking startup CPU cycles when not needed:
electron/lib/browser/init.ts
Line 177 in bfced8c
At the very minimum allow an option to disable this when the application sets a menu anyway.
Actual Behavior
Electron seems to install a default menu which consumes time for no good reasons it seems:
Testcase Gist URL
No response
Additional Information
No response