https://bugs.kde.org/show_bug.cgi?id=523063
Bug ID: 523063
Summary: Allow app to change description of global shortcut
when re-registering it
Classification: Plasma
Product: xdg-desktop-portal-kde
Version First 6.7.2
Reported In:
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
DESCRIPTION
Say you bind a shortcut with some id and description. In a later session, when
BindShortcuts is called, this shortcut may be registered again but with a
different description to before, but this is not reflected in Plasma Settings;
the description stays the same as it originally was.
For instance, I am currently trying to implement support for the global
shortcuts portal for OBS Studio. Whenever a user creates a scene, a new
shortcut needs to be created for switching to that scene. This shortcut's
description will have the name of the scene attached to it. However, if the
user changes the name of the scene, there is seemingly no way of changing the
description without registering a brand new shortcut (with a new id), which the
user will manually need to rebind themselves.
There are other scenarios where a shortcut's description could change. For
instance, it could change after an app update, or because the user changed
their language settings.
STEPS TO REPRODUCE
I was using the ASHPD Demo for the GlobalShortcuts portal (for the sake of
demonstration).
1. Bind a shortcut with some id and description then start a session.
2. Start a session.
3. Stop the session.
4. Change the description of the shortcut, keeping the id the same as before.
5. Start the session again.
When looking in Plasma Settings, the description of the shortcut does not
change to whatever you set it to in step 4; it remains as whatever you set it
to in step 1.
EXPECTED RESULT
The description of the shortcut correspond to whatever it was last set to.
SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44
KDE Plasma Version: 6.7.2
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
ADDITIONAL INFORMATION
N/A
--
You are receiving this mail because:
You are watching all bug changes.