Bug 391713 - Double entries if jump lists and mpris controls are enabled
Summary: Double entries if jump lists and mpris controls are enabled
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-11 14:55 UTC by Christian (Fuchs)
Modified: 2018-03-12 10:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
double entries in cantata (music player) context menu (26.17 KB, image/jpeg)
2018-03-11 14:55 UTC, Christian (Fuchs)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian (Fuchs) 2018-03-11 14:55:07 UTC
Created attachment 111322 [details]
double entries in cantata (music player) context menu

If a media player defines actions in its .desktop file, they are shown in the context menu in the task manager. 

However, media players might do this because most environments don't auto-add entries based on mpris, so you end up with duplicate entries for common actions like play/pause, stop, previous and next track. 

The best solution would be to make this conditional, however, this might be hard to implement. A easier solution would be to have a .desktop entry which allows developers to disable mpris (or other automatically) added entries and only use their own.
Comment 1 Kai Uwe Broulik 2018-03-12 09:51:48 UTC
The way Cantata is using Jump List Actions is not what they're designed for, they aren't dynamic, so they cannot represent Play vs Pause or disable Back/Forward.

It should instead hide its entries by adding NotShowIn=KDE to the actions to hide them. I explicitly added this to Task Manager for precisely this case even though it's not specifically mentioned in the Additional application actions spec.

Please file a bug report against Cantata instead.
Comment 2 Christian (Fuchs) 2018-03-12 10:57:54 UTC
https://github.com/CDrummond/cantata/issues/1233