Bug 423245

Summary: The Tracklist d-bus interface has stopped working
Product: [Applications] amarok Reporter: Toni Asensi Esteve <toni.asensi>
Component: D-Bus interfacesAssignee: Amarok Bugs <amarok-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: alex.merry
Priority: NOR    
Version First Reported In: 2.9.71   
Target Milestone: kf5   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Toni Asensi Esteve 2020-06-19 20:39:52 UTC
SUMMARY
Lately, the Tracklist d-bus interface has stopped working. After having talked to Alex Merry, I report this feature request, as the tracklist of Amarok can not be controlled from (for example) a script, even though Amarok has a tracklist.

This is important, because (for example) during more than ten years Amarok users have been able to press a button that sends the unwanted current track to the recycle bin (because pressing the button launches a script that removes the current track from the tracklist, etc.).

STEPS TO REPRODUCE
1. Execute Amarok, in the command line it can be typed:
    qdbus org.kde.amarok /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.

2. Press Tab, see options like
    org.mpris.MediaPlayer2.CanQuit                org.mpris.MediaPlayer2.Player.CanSeek        
but tracklist options like
    org.mpris.MediaPlayer2.TrackList.RemoveTrack
are not seen. [^1]

[^1]: Which are seen if it's VLC the program which is executed, in the command line is typed `qdbus org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.` and Tab is pressed. 
Also, <https://scriptsandoneliners.blogspot.com/2014/07/control-vlc-via-dbus.html> can be seen.

OBSERVED RESULT
Tracklist options like 
    org.mpris.MediaPlayer2.TrackList.RemoveTrack
are no longer seen.

EXPECTED RESULT
Tracklist options like 
    org.mpris.MediaPlayer2.TrackList.RemoveTrack
would be seen again, as Amarok has always done.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.4.0-37-generic
OS Type: 64-bit
Comment 1 Toni Asensi Esteve 2020-07-01 20:50:39 UTC
If it may be useful: MPRIS2 tracklist specifications can be seen on https://specifications.freedesktop.org/mpris-spec/latest/Track_List_Interface.html
Comment 2 Toni Asensi Esteve 2021-06-06 21:07:11 UTC
Other people have found similar problems when trying to delete unwanted tracks:

- https://forum.kde.org/viewtopic.php?f=117&t=168355
- https://forum.kde.org/viewtopic.php?f=116&t=74301
- https://store.kde.org/p/1135839/
Comment 3 Myriam Schweingruber 2021-06-07 12:45:52 UTC
Moving to normal bugs list, as this should be implemented ASAP.