Bug 341587 - Media Controller doesn't allow to configure global hotkeys
Summary: Media Controller doesn't allow to configure global hotkeys
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Media Player (show other bugs)
Version: master
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-05 17:28 UTC by Elias Probst
Modified: 2015-02-06 07:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.3.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2014-12-05 17:28:20 UTC
The configuration of Media Controller doesn't provide a functioning global hotkey configuration.

It should register by default at least the regular media control hotkeys present on many keyboards/laptops nowadays (play/pause, next, prev, stop).

Related: https://github.com/eonpatapon/mpDris2/issues/61
Comment 1 Kai Uwe Broulik 2014-12-05 17:41:50 UTC
Actually that's outside the scope of mediacontroller but I like the idea nonetheless. I will try to look into how this could be done.
Comment 2 David Edmundson 2014-12-26 19:22:30 UTC
The app should do it, that's why we have the kglobalacceld daemon. There's not point going

klgobalacceld->plasmashell>media player

when we can just go

klgobalacceld->mediaplayer

If we did go via plasmashell we would break the media player working on any other desktop. 

Personally I would file this as wontfix and file bugs on rubbish media players.
Comment 3 Kai Uwe Broulik 2014-12-28 15:07:53 UTC
You cannot assign the same shortcut for multiple actions, right? If Amarok already claimed "Media Stop" you cannot assign that to any other player?
Comment 4 David Edmundson 2015-01-06 09:42:25 UTC
oh, that's a good point.

khotkeys might be an ideal place to do this. We can just add some defaults there.
Comment 5 Martin Flöser 2015-02-05 09:24:00 UTC
Please see: https://git.reviewboard.kde.org/r/122437/
Comment 6 Martin Flöser 2015-02-06 07:22:07 UTC
Git commit 409fdfab03e7a0b5a61e7796e1fba85b143eab3b by Martin Gräßlin.
Committed on 05/02/2015 at 08:45.
Pushed by graesslin into branch 'master'.

[dataengine/mpris2] Add global shortcuts for media control

The multiplexer registers global shortcuts for:
* play/pause
* next
* previous
* stop

and delegates them to the active player if triggered.

This could mean that media shortcuts for non mpris2 enabled
applications might break. The advantage is that we have global
shortcuts for media control.
FIXED-IN: 5.3.0
REVIEW: 122437

M  +1    -0    dataengines/mpris2/CMakeLists.txt
M  +51   -0    dataengines/mpris2/multiplexer.cpp

http://commits.kde.org/plasma-workspace/409fdfab03e7a0b5a61e7796e1fba85b143eab3b