Bug 482712 - application shortcuts stopped working
Summary: application shortcuts stopped working
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kglobalaccel
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 6.0.0
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: qt6, regression
Depends on:
Blocks:
 
Reported: 2024-03-07 13:18 UTC by bastimeyer123
Modified: 2024-03-16 02:32 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bastimeyer123 2024-03-07 13:18:44 UTC
SUMMARY
This started happening after the upgrade to Plasma 6. Application shortcuts are not working anymore.

I've been using the "Increase volume" and "Decrease volume" inputs for application-specific hotkeys on kwin 5.x without any issues. The application in question is the music player Clementine, but this also applies to its (maintained) fork named Strawberry, so I don't think this is caused by any of these applications themselves. The increase/decrease volume inputs are set to increase/decrease the volume of those music players instead of the whole audio device, but other inputs like for example keyboard buttons are not working either.

STEPS TO REPRODUCE
1. Install Clementine or Strawberry (both properly register their application shortcuts in Plasma's keyboard-shortcut settings and worked flawlessly on Plasma 5)
2. Have a shortcut set to increase/decrease the application's own output volume (both via their own settings menu or via Plasma's system settings)
3. Shortcut action does not trigger, regardless the input (e.g. "Increase volume" or "Meta+PgUp", etc.)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0 
Qt Version: 6.6.2
Comment 1 Tymoteusz 2024-03-07 16:46:51 UTC
Same. For me any shortcut stopped working, even stuff like alt+tab or alt+F4
Comment 2 Nicolas Fella 2024-03-07 17:31:02 UTC
Most likely related log output from globalacceld

qt.dbus.integration: QDBusConnection: couldn't handle call to setShortcut, no slot matched
qt.dbus.integration: QDBusConnection: couldn't handle call to setShortcut, no slot matched
qt.dbus.integration: Could not find slot KGlobalAccelD::setShortcut
Comment 3 Tymoteusz 2024-03-07 18:14:10 UTC
(In reply to Nicolas Fella from comment #2)
> Most likely related log output from globalacceld
> 
> qt.dbus.integration: QDBusConnection: couldn't handle call to setShortcut,
> no slot matched
> qt.dbus.integration: QDBusConnection: couldn't handle call to setShortcut,
> no slot matched
> qt.dbus.integration: Could not find slot KGlobalAccelD::setShortcut

whenever i run /usr/lib/kglobalacceld i get
kf.dbusaddons: DBus session bus not found. To circumvent this problem try the following command (with bash):
    export $(dbus-launch)
Comment 4 Bug Janitor Service 2024-03-07 18:30:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kglobalacceld/-/merge_requests/45
Comment 5 Tymoteusz 2024-03-07 19:42:37 UTC
(In reply to bastimeyer123 from comment #0)
> SUMMARY
> This started happening after the upgrade to Plasma 6. Application shortcuts
> are not working anymore.
> 
> I've been using the "Increase volume" and "Decrease volume" inputs for
> application-specific hotkeys on kwin 5.x without any issues. The application
> in question is the music player Clementine, but this also applies to its
> (maintained) fork named Strawberry, so I don't think this is caused by any
> of these applications themselves. The increase/decrease volume inputs are
> set to increase/decrease the volume of those music players instead of the
> whole audio device, but other inputs like for example keyboard buttons are
> not working either.
> 
> STEPS TO REPRODUCE
> 1. Install Clementine or Strawberry (both properly register their
> application shortcuts in Plasma's keyboard-shortcut settings and worked
> flawlessly on Plasma 5)
> 2. Have a shortcut set to increase/decrease the application's own output
> volume (both via their own settings menu or via Plasma's system settings)
> 3. Shortcut action does not trigger, regardless the input (e.g. "Increase
> volume" or "Meta+PgUp", etc.)
> 
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: Arch Linux
> KDE Plasma Version: 6.0.1
> KDE Frameworks Version: 6.0.0 
> Qt Version: 6.6.2

Have you been using x11 before updating? Plasma 6 launches with wayland by default, and you'd have to change it back to x11 (system settings -> colors and themes -> login screen (sddm) -> behavior)
that fixed it for me
Comment 6 Nicolas Fella 2024-03-07 19:45:33 UTC
Strawberry shortcuts being broken happens on both X11 and Wayland
Comment 7 etoven 2024-03-08 02:24:38 UTC Comment hidden (spam)
Comment 8 Nicolas Fella 2024-03-10 10:23:58 UTC
Git commit 0b56d9b99ca7236bae2d16e8db192a08e62722ae by Nicolas Fella.
Committed on 07/03/2024 at 18:30.
Pushed by nicolasfella into branch 'master'.

Include all deprecated functions by default

These are part of the DBus API and should be built by default

The current code includes some, but not all

M  +3    -13   CMakeLists.txt

https://invent.kde.org/plasma/kglobalacceld/-/commit/0b56d9b99ca7236bae2d16e8db192a08e62722ae
Comment 9 Nicolas Fella 2024-03-10 10:24:27 UTC
Git commit 0ba7196bafc4caf57c1845616a127c828149f0dc by Nicolas Fella.
Committed on 10/03/2024 at 10:24.
Pushed by nicolasfella into branch 'Plasma/6.0'.

Include all deprecated functions by default

These are part of the DBus API and should be built by default

The current code includes some, but not all
(cherry picked from commit 0b56d9b99ca7236bae2d16e8db192a08e62722ae)

M  +3    -13   CMakeLists.txt

https://invent.kde.org/plasma/kglobalacceld/-/commit/0ba7196bafc4caf57c1845616a127c828149f0dc
Comment 10 etoven 2024-03-16 02:00:57 UTC Comment hidden (spam)
Comment 11 Nate Graham 2024-03-16 02:32:18 UTC Comment hidden (spam)