Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Linux
  3. Gnome merges Global Shortcuts

Gnome merges Global Shortcuts

Scheduled Pinned Locked Moved Linux
29 Posts 11 Posters 147 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • that_leaflet@lemmy.worldT [email protected]

    Gnome Extensions run in the Gnome shell, so they have special privileges.

    Wayland’s security focus prevents apps from listening in on all user key presses, which means they can’t know you used a keyboard shortcut unless the app is focused.

    The Global Shortcut Portal was made to address this. An app registers for a global shortcut, and when the user activates the shortcut, the portal tells the app that it’s been activated.

    I This user is from outside of this forum
    I This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #4

    Thanks for the context!

    1 Reply Last reply
    0
    • that_leaflet@lemmy.worldT [email protected]
      This post did not contain any content.
      umbrella@lemmy.mlU This user is from outside of this forum
      umbrella@lemmy.mlU This user is from outside of this forum
      [email protected]
      wrote on last edited by [email protected]
      #5

      .

      that_leaflet@lemmy.worldT 1 Reply Last reply
      0
      • that_leaflet@lemmy.worldT [email protected]
        This post did not contain any content.
        M This user is from outside of this forum
        M This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #6

        it's still up to individual apps to implement the portal I think

        M 1 Reply Last reply
        0
        • M [email protected]

          it's still up to individual apps to implement the portal I think

          M This user is from outside of this forum
          M This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #7

          True, but the apps that cause the most complaints about features that Wayland lacks (Discord for this one) are usually among the fastest to enable the portals once they're available.

          G 1 Reply Last reply
          0
          • umbrella@lemmy.mlU [email protected]

            .

            that_leaflet@lemmy.worldT This user is from outside of this forum
            that_leaflet@lemmy.worldT This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #8

            The traditional insecure global shortcuts system works in Xorg.

            umbrella@lemmy.mlU 1 Reply Last reply
            0
            • M [email protected]

              True, but the apps that cause the most complaints about features that Wayland lacks (Discord for this one) are usually among the fastest to enable the portals once they're available.

              G This user is from outside of this forum
              G This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #9

              Not sure if Discord is the best example here, as it didn't support the screen capture portal for a very long time.

              P 1 Reply Last reply
              0
              • I [email protected]

                It wasn't clear for me what the hell is a "Global Shortcut" I heard the term first time in my life, I found the answer in the upstream PR:

                It's designed so that applications can register actions that can be triggered globally (i.e. regarless of the system's state, like focus).

                It's strange, it wasn't possible until now, or the main thing it's now DE independent?

                On Gnome I use Run or raise extension, and with this I can run or switch to running apps with** global shortcuts**, so this was definitely working from Gnome extensions.

                M This user is from outside of this forum
                M This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #10

                It's because this feature was implemented as a pseudo-keylogger on X11. All X clients could listen to the compositor state at all times (including input), even if input was focussed on another (potentially sensitive) application.

                In Wayland, clients have almost zero knowledge of the compositor's state. This was an explicit design choice to enhance security and enable modular features via wayland protocols. Of course, this also killed every implementation of app-specific global shortcuts.

                Wayland protocols take a lot of time to get agreed on - They need multiple implementations across different compositors (usually means KDE and GNOME need to implement the protocol spec and agree to it) and the specs can take a long time to design and reach production.

                Obviously this does hurt uptake for Wayland since issues can take years to resolve, but the core team are very aware of the pitfalls of X11's development and have long preferred this slow and methodical approach in the hopes it's sustainable and maintainable into the future.

                1 Reply Last reply
                0
                • G [email protected]

                  Not sure if Discord is the best example here, as it didn't support the screen capture portal for a very long time.

                  P This user is from outside of this forum
                  P This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #11

                  Discord didn't take very long to add it at all, what took a long time was fixing audio streaming.

                  Z 1 Reply Last reply
                  0
                  • that_leaflet@lemmy.worldT [email protected]

                    The traditional insecure global shortcuts system works in Xorg.

                    umbrella@lemmy.mlU This user is from outside of this forum
                    umbrella@lemmy.mlU This user is from outside of this forum
                    [email protected]
                    wrote on last edited by [email protected]
                    #12

                    .

                    A 1 Reply Last reply
                    0
                    • umbrella@lemmy.mlU [email protected]

                      .

                      A This user is from outside of this forum
                      A This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #13

                      Xorg global shortcuts will work for anything using Xwayland, but not in anything thats wayland native

                      For example, in a game (using wine, which uses Xorg by default currently) your global shortcut will work. But in a wayland native window like Firefox, it will not if its the active window

                      umbrella@lemmy.mlU that_leaflet@lemmy.worldT 2 Replies Last reply
                      0
                      • A [email protected]

                        Xorg global shortcuts will work for anything using Xwayland, but not in anything thats wayland native

                        For example, in a game (using wine, which uses Xorg by default currently) your global shortcut will work. But in a wayland native window like Firefox, it will not if its the active window

                        umbrella@lemmy.mlU This user is from outside of this forum
                        umbrella@lemmy.mlU This user is from outside of this forum
                        [email protected]
                        wrote on last edited by [email protected]
                        #14

                        .

                        1 Reply Last reply
                        0
                        • that_leaflet@lemmy.worldT [email protected]
                          This post did not contain any content.
                          communist@lemmy.frozeninferno.xyzC This user is from outside of this forum
                          communist@lemmy.frozeninferno.xyzC This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #15

                          Does anyone know what the status on KDE implementing this is?

                          that_leaflet@lemmy.worldT Z 2 Replies Last reply
                          0
                          • communist@lemmy.frozeninferno.xyzC [email protected]

                            Does anyone know what the status on KDE implementing this is?

                            that_leaflet@lemmy.worldT This user is from outside of this forum
                            that_leaflet@lemmy.worldT This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #16

                            Already merged there some time ago.

                            communist@lemmy.frozeninferno.xyzC 1 Reply Last reply
                            0
                            • that_leaflet@lemmy.worldT [email protected]

                              Already merged there some time ago.

                              communist@lemmy.frozeninferno.xyzC This user is from outside of this forum
                              communist@lemmy.frozeninferno.xyzC This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #17

                              I can't find any documentation on how to set it up, do you happen to know where that would be?

                              I can't figure out how to setup discord push to talk on kde wayland, specifically

                              that_leaflet@lemmy.worldT 1 Reply Last reply
                              0
                              • communist@lemmy.frozeninferno.xyzC [email protected]

                                I can't find any documentation on how to set it up, do you happen to know where that would be?

                                I can't figure out how to setup discord push to talk on kde wayland, specifically

                                that_leaflet@lemmy.worldT This user is from outside of this forum
                                that_leaflet@lemmy.worldT This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #18

                                Apps need to add support for the new portal system. Chromium is adding (or added?) support, so Discord may implement it once they use an Electron version with support.

                                If you’re using KDE, you can tell Discord to use X11 and use KDE’s feature to let X11 apps snoop on key presses.

                                communist@lemmy.frozeninferno.xyzC 1 Reply Last reply
                                0
                                • A [email protected]

                                  Xorg global shortcuts will work for anything using Xwayland, but not in anything thats wayland native

                                  For example, in a game (using wine, which uses Xorg by default currently) your global shortcut will work. But in a wayland native window like Firefox, it will not if its the active window

                                  that_leaflet@lemmy.worldT This user is from outside of this forum
                                  that_leaflet@lemmy.worldT This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #19

                                  Are you sure about that? KDE has a feature that lets Xwayland apps snoop if certain keys are pressed, but Gnome does not.

                                  A 1 Reply Last reply
                                  0
                                  • that_leaflet@lemmy.worldT [email protected]

                                    Are you sure about that? KDE has a feature that lets Xwayland apps snoop if certain keys are pressed, but Gnome does not.

                                    A This user is from outside of this forum
                                    A This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #20

                                    Yeah. The behavior i stated was how it works in Gnome. In KDE since Xorg passthrough is a formal thing, the behavior is different based on those options

                                    1 Reply Last reply
                                    0
                                    • communist@lemmy.frozeninferno.xyzC [email protected]

                                      Does anyone know what the status on KDE implementing this is?

                                      Z This user is from outside of this forum
                                      Z This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by
                                      #21

                                      It was implemented over two years ago.

                                      communist@lemmy.frozeninferno.xyzC 1 Reply Last reply
                                      0
                                      • P [email protected]

                                        Discord didn't take very long to add it at all, what took a long time was fixing audio streaming.

                                        Z This user is from outside of this forum
                                        Z This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #22

                                        Umm yes, they did take ages to support it. It took like 7 years...

                                        P 1 Reply Last reply
                                        0
                                        • Z [email protected]

                                          It was implemented over two years ago.

                                          communist@lemmy.frozeninferno.xyzC This user is from outside of this forum
                                          communist@lemmy.frozeninferno.xyzC This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #23

                                          I can't find a way to manually add entries in the settings, is there no way to do that?

                                          How would I manually enable push to talk in discord, for example?

                                          Z 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups