Skycoder42/QHotkey

xdg-desktop-portal org.freedesktop.portal.GlobalShortcuts

Opened this issue · 3 comments

Global shortcuts on (most) linux systems seem to get as straightforward as macos and windows.

This is a thing. freedesktop.org, Fedora, Flatpak is behind it and probably most platforms already implemented the org.freedesktop.portal.GlobalShortcuts interface.

Please use it.

This also solves #14 .

I'd really like this to be implemented to get https://github.com/kamui-fin/gazou working on Wayland.

The protocol seems quite complex, one way to do it could be to use libportal, but the global shortcut portal is still unimplemented : flatpak/libportal#134.

Here's the discussion that lead to the XDG GlobalShortcuts portal's creation: flatpak/xdg-desktop-portal#624

Copied from there, here are two app implementations done by Aleix Pol: