OSDN Git Service

kdeplasma-addons: check for MPRIS interface instead of relying on categories
authorIvailo Monev <xakepa10@gmail.com>
Tue, 8 Nov 2022 18:32:58 +0000 (20:32 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 8 Nov 2022 18:34:29 +0000 (20:34 +0200)
commit2734df9d7442a0c38d7e690e28d019c79037c5f3
treee3f1cbce4a6b12a36e7e86431da0ad4593f43696
parent03c55f0bb826bc170427a62d5e2e19a1302d54c2
kdeplasma-addons: check for MPRIS interface instead of relying on categories

generally speaking trying to guess MPRIS interfaces is brute-force guess - it
works kinda. the check that was used before this change however does not
account for applications that are not categorized as audio or music player
but do have MPRIS interface (chromium does).

side note: tested only the MPRIS v2 interface

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kdeplasma-addons/applets/icontasks/mediabuttons.cpp
kdeplasma-addons/applets/icontasks/mediabuttons.h