Skip to content

[Feature Request]: adopt xdg-desktop-portal GlobalShortcuts API #38288

@jokeyrhyme

Description

@jokeyrhyme

Preflight Checklist

Problem Description

  • modern Linux environments such as wayland and flatpak prevent applications from direct access to user input events (for security purposes)
  • traditional approaches for implementing global keyboard shortcuts don't work here

Proposed Solution

Alternatives Considered

  • it might be worth making this a new JS API instead, but I predict that would lead to poor adoption and thus increased frustration for Linux users of electron-based apps
  • other approaches include using root permissions to bypass the wayland / flatpak security model in order to maintain direct access to user input events, but this seems a lot less safe than the proposed solution

Additional Information

These Linux desktop environments have already implemented the GlobalShortcuts portal:

These are tracking issues/discussions for other desktop environments:

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