Summary: | Binding Global Shortcuts through the Portal fails with Python | ||
---|---|---|---|
Product: | [Plasma] xdg-desktop-portal-kde | Reporter: | winblocker |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aleixpol, jgrulich, linds.r, nate |
Priority: | NOR | ||
Version First Reported In: | 5.27.8 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/726d22c71aac0f820773ce5bb3ab91f8ffc77e1b | Version Fixed In: | |
Sentry Crash Report: |
Description
winblocker
2023-09-20 18:39:02 UTC
Hey, found the same issue trying to get my own app to work via this protocol, and fixed xdg-desktop-portal-kde after some debugging and digging. Just found your issue which is likely to be the same problem. Have a merge request open to fix it at https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/274 . It also contains information on why support ended up broken. Another merge request in the test code if you'd like to see the change necessary to have client code work relative to the examples coded against the draft protocol: https://invent.kde.org/libraries/xdg-portal-test-kde/-/merge_requests/25 Git commit a748343ee8a8cdfaeaa4a40544ce41a5e3b56e97 by Lindsay Roberts, on behalf of Lindsay Roberts. Committed on 06/03/2024 at 18:03. Pushed by roberts into branch 'master'. GlobalShortcuts: Set shortcuts in BindShortcuts The protocol changed in https://github.com/flatpak/xdg-desktop-portal/commit/8cb5b6d997108443ecc26152c95bbca8c8c58fc3 to accept shortcuts in BindShortcuts instead of CreateSession. xdg-desktop-portal no longer forwards shortcuts from CreateSession so before this change, no shortcuts could be created. M +1 -4 src/globalshortcuts.cpp M +1 -10 src/session.cpp M +1 -1 src/session.h https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/a748343ee8a8cdfaeaa4a40544ce41a5e3b56e97 Git commit 726d22c71aac0f820773ce5bb3ab91f8ffc77e1b by Nicolas Fella, on behalf of Lindsay Roberts. Committed on 07/03/2024 at 18:57. Pushed by nicolasfella into branch 'Plasma/6.0'. GlobalShortcuts: Set shortcuts in BindShortcuts The protocol changed in https://github.com/flatpak/xdg-desktop-portal/commit/8cb5b6d997108443ecc26152c95bbca8c8c58fc3 to accept shortcuts in BindShortcuts instead of CreateSession. xdg-desktop-portal no longer forwards shortcuts from CreateSession so before this change, no shortcuts could be created. (cherry picked from commit a748343ee8a8cdfaeaa4a40544ce41a5e3b56e97) M +1 -4 src/globalshortcuts.cpp M +1 -10 src/session.cpp M +1 -1 src/session.h https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/726d22c71aac0f820773ce5bb3ab91f8ffc77e1b |