Skip to content

GTK: Implement global shortcuts #6051

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pluiedev opened this issue Mar 2, 2025 · 3 comments
Open

GTK: Implement global shortcuts #6051

pluiedev opened this issue Mar 2, 2025 · 3 comments
Labels
Milestone

Comments

@pluiedev
Copy link
Member

pluiedev commented Mar 2, 2025

Should work on every platform that implements the XDG Desktop Portal (see https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.GlobalShortcuts.html)

It's a lot of D-Bus sadness, but it should be doable.

@pluiedev pluiedev added this to the 1.2.0 milestone Mar 2, 2025
@xordspar0
Copy link

Gnome 48, which shipped this week, now supports the global shortcuts portal.

@digitalsignalperson
Copy link

digitalsignalperson commented Mar 27, 2025

My previous notes saved about the dbus interface:

For kde it's under the org.freedesktop.impl.portal.desktop.kde
For gnome it sounds like maybe org.gnome.GlobalShortcutsProvider

Poking at it with D-Spy under the org.freedesktop.impl.portal.desktop.kde bus, /org/freedesktop/portal/desktop path, org.freedesktop.impl.portal.GlobalShortcuts. Also trying to register something with dbus-send or python dbus, but I give up for now

@pluiedev
Copy link
Member Author

To my knowledge org.freedesktop.impl.portal.desktop.kde and org.gnome.GlobalShortcutsProvider are private interfaces that we shouldn't interact with. The public API has always been just org.freedesktop.portal.GlobalShortcuts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants