XDG Global Keybinds Portal in GNOME?

One of the big things preventing me from moving over to Wayland is the lack of global keybinds, because of security reasons, a program can only recieve keyboard input if it is focused. It would be really nice to set up certain global keybinds for some of my programs.

About a year ago, a portal for global keybinds was added into the XDG Desktop Portal project (Global keyboard shortcut portal · Issue #624 · flatpak/xdg-desktop-portal · GitHub). As far as I’m aware, it’s up to each desktop environment to support each portal, but I can’t find any settings menu in GNOME.

If I’m misunderstanding the relationship between XDG portals and DEs, or if I’m completely overcomplicating this, please let me know. Any help is much appreciated.

This is something you need to reach out to the Gnome project for.

Gotcha, looks like it’s being worked on actively here.

Searched through dnconf editor, I couldn’t find anything in the experimental features. . .

On Fedora 40 :

rpm -qi xdg-desktop-portal
Name        : xdg-desktop-portal
Version     : 1.18.4
Release     : 1.fc40
Architecture: x86_64
Install Date: Sat 27 Apr 2024 09:41:05 AM EDT
Group       : Unspecified
Size        : 2365387
License     : LGPL-2.1-or-later
Signature   : RSA/SHA256, Fri 19 Apr 2024 04:48:35 PM EDT, Key ID 0727707ea15b79cc
Source RPM  : xdg-desktop-portal-1.18.4-1.fc40.src.rpm
Build Date  : Fri 19 Apr 2024 04:35:35 PM EDT
Build Host  : buildvm-x86-05.iad2.fedoraproject.org
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://github.com/flatpak/xdg-desktop-portal/
Bug URL     : https://bugz.fedoraproject.org/xdg-desktop-portal
Summary     : Portal frontend service to flatpak
Description :
xdg-desktop-portal works by exposing a series of D-Bus interfaces known as
portals under a well-known name (org.freedesktop.portal.Desktop) and object
path (/org/freedesktop/portal/desktop). The portal interfaces include APIs for
file access, opening URIs, printing and others.

So maybe there is a way for you to test this on your system? there are some KDE users alreay coming up with ways. . .