Skip to content

[Bug]: electron should not set a default menu #35512

@bpasero

Description

@bpasero

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:

image

Testcase Gist URL

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions