Skip to content

Global shortcuts registered from Electron are registered to org.chromium.Chromium #49873

Closed

Description

@Damglador

Preflight Checklist

Electron Version

39

What operating system(s) are you using?

Other Linux

Operating System Version

Linux Parasite 6.18.8-1-cachyos-bore #1 SMP PREEMPT_DYNAMIC Wed, 04 Feb 2026 08:00:19 +0000 x86_64 GNU/Linux

What arch are you using?

x64

Last Known Working Electron version

No response

Does the issue also appear in Chromium / Google Chrome?

I don't know how to test

Expected Behavior

The name of the app should be used instead of org.chromium.Chromium and shortcut name should also use name of the app instead of "Electron", though preferably it should have an actual shortcut description.

Actual Behavior

All shortcuts get assigned to org.chromium.Chromium with name "Electron shortcut "

Testcase Gist URL

https://gist.github.com/Damglador/82c887171153ac64535b2c7a043fe4e8

Additional Information

On KDE Plasma, to update the shortcuts list you can change the settings tab to another one and back to shortcuts, the shortcuts list doesn't update in real time.

Related code:

extensions::Command command(
command_str, base::UTF8ToUTF16("Electron shortcut " + command_str),
/*accelerator=*/std::string(), /*global=*/true);

https://source.chromium.org/chromium/chromium/src/+/main:third_party/cros_system_api/dbus/service_constants.h;l=136;drc=0b7c44227a013533b4220c595a283b0cd690a803
or
https://source.chromium.org/chromium/chromium/src/+/main:base/version_info/nix/version_extra_utils.cc;l=39-43;drc=97e4787267d500ed8c4f34e0da9e83e098874393

Activity

  1. added theissue type on Feb 19, 2026
  2. added
    has-repro-gist
    on Feb 19, 2026
  3. Damglador commented on Feb 19, 2026

    @Damglador
    ContributorAuthor

    The shortcut name is also just "Electron shortcut", which makes telling apart shortcuts from different applications impossible and may also cause collisions(?) if different apps request the same shortcut.

  4. moved this to 👀 Unsorted Items in 40-x-yon Feb 19, 2026
  5. nikwen commented on Feb 19, 2026

    @nikwen
    Member

    Thanks for reporting and for digging into the code to find the root cause!

  6. moved this from 👀 Unsorted Items to 👍 Does Not Block Stable in 40-x-yon Feb 25, 2026
  7. mitchchn commented on Feb 25, 2026

    @mitchchn
    Member

    @nikwen I can look into this one.

  8. Damglador commented on Mar 3, 2026

    @Damglador
    ContributorAuthor

    Wow, that was quick, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

39-x-y40-x-ybug 🪲component/globalShortcuthas-repro-gistplatform/linux

Type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions