• 0 Posts
  • 210 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle





  • There may be a need for additional information, there just isn’t any in these responses. Using a basic JSON schema like the Problem Details RFC provides a standard way to add that information if necessary. Error codes are also often too general to have an application specific meaning. For example, is a “400 bad request” response caused by a malformed payload, a syntactically valid but semantically invalid payload, or what? Hence you put some data in the response body.















  • Kogasa@programming.devtoMemes@lemmy.mlasdf
    link
    fedilink
    arrow-up
    4
    arrow-down
    2
    ·
    6 months ago

    It doesn’t, it just delegates the responsibility to something else, namely xdg-desktop-portal and/or your compositor. The main issue with global hotkeys is that applications can’t usually set them, e.g. Discord push-to-talk, rather the compositor has to set them and the application needs to communicate with the compositor. This is fundamentally different from how it worked with X11 so naturally adoption is slow.