Skip to content

Unused options in GlobalShortcuts::BindShortcuts impl #1311

Open
@dcz-self

Description

Operating System

n/a

XDG Desktop Portal version

Git

XDG Desktop Portal version (Other)

No response

Desktop Environment

Other

Desktop Environment (Other)

No response

Expected Behavior

The spec doesn't have unexplained or unneeded parts.

Current Behavior

The non-impl side of BindShortcuts takes an option useful for generating the handle. The impl-side call receives a fully-formed handle, so there's no option necessary. Still, there's the "option" argument in the docs, which is completely lacking any description whatsoever.

The actual code for handling this in xdg-desktop-portal silently drops the options on the floor.

The ListShortcuts call doesn't have one, so it seems unnecessary and unnecessarily confusing.

Steps to Reproduce

  1. Go to org-freedesktop-impl-portal-globalshortcuts-bindshortcuts
  2. Notice "options"
  3. Notice lack of description.
    ...

Anything else we should know?

No response

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions