[mpris2 dataengine] Fix media key handling to match MediaPlayer2.Player
Summary: * first check CanControl property, as it overrules things * next check each action Can* property, to spare D-Bus call and app activation if false * support CanPause and only call PlayPause is possible, otherwise use Play Test Plan: Vlc can be controlled by keyboard media keys as before, Gwenview patched to support MPRIS (with CanPause=false) can now be controlled with the Play/Pause media key. Reviewers: broulik Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D10991
parent
c7f2d8e7
Please register or sign in to comment