Bug 396865 - The Amarok media controls are missed in the "Task Manager" or "Icons-only Task Manager" applet window thumbnail
Summary: The Amarok media controls are missed in the "Task Manager" or "Icons-only Tas...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.13.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
: 396863 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-07-26 06:04 UTC by uRohan
Modified: 2020-07-28 13:21 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Amarok - Media controls (120.40 KB, image/png)
2018-07-26 06:05 UTC, uRohan
Details
amarok xprop output (41.89 KB, text/plain)
2018-07-26 07:22 UTC, uRohan
Details
org.kde.amarok.desktop (8.92 KB, application/x-desktop)
2018-07-27 17:13 UTC, uRohan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description uRohan 2018-07-26 06:04:31 UTC
OS: openSUSE Tumbleweed 20180723
KDE Plasma Version: 5.13.3
KDE Frameworks Version: 5.48.0
Qt Version: 5.11.1
Kernel Version: 4.17.7-1-default
OS Type: 64-bit

Amarok Version: 2.9.0

Reproducible: Always

Steps to Reproduce:
1. Run Amarok if it was not started.
2. Hover mouse cursor above the Amarok window placed in the "Task Manager" or "Icons-only Task Manager" applet.

Actual Results:
The Amarok media controls are missed in the "Task Manager" or "Icons-only Task Manager" applet window thumbnail.

Expected Results:
The Amarok media controls should appear in the window thumbnail of the "Task Manager" or "Icons-only Task Manager" applet.
Comment 1 uRohan 2018-07-26 06:05:36 UTC
Created attachment 114131 [details]
Amarok - Media controls
Comment 2 Eike Hein 2018-07-26 06:14:26 UTC
Adding Kai to CC since he knows the media controls code best.
Comment 3 Kai Uwe Broulik 2018-07-26 07:08:30 UTC
Can you provide the output of the following:

$ qdbus org.mpris.MediaPlayer2.amarok /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.DesktopEntry

(perhaps amarok2 or something but you can use tab autocompletion to find the service name)

$ xprop

of the Amarok window as well as the name of the desktop file name of Amarok. If the DesktopEntry from the first command doesn't match the file name of the desktop file (excluding the .desktop suffix) then the bug is in Amarok
Comment 4 uRohan 2018-07-26 07:22:07 UTC
Yes, sure.

$ qdbus org.mpris.MediaPlayer2.amarok /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.DesktopEntry
org.kde.amarok
Comment 5 uRohan 2018-07-26 07:22:30 UTC
Created attachment 114134 [details]
amarok xprop output
Comment 6 uRohan 2018-07-26 08:53:36 UTC
$ xprop
WM_CLASS(STRING) = "amarok", "Amarok"
Comment 7 Kai Uwe Broulik 2018-07-26 13:10:11 UTC
What's the name of the desktop file for amarok in /usr/share/applications? is it org.kde.amarok.desktop?
Comment 8 uRohan 2018-07-26 13:22:17 UTC
It is located here: /usr/share/applications/kde4/

Yes, the name is org.kde.amarok.desktop

I'm sorry for the delay...
Comment 9 uRohan 2018-07-27 17:13:36 UTC
Created attachment 114167 [details]
org.kde.amarok.desktop
Comment 10 Kai Uwe Broulik 2018-07-30 08:09:15 UTC
Looks like the "kde4" part is to blame. Are there any other applications in kde4 folder and do they exhibit the same problem?
Comment 11 uRohan 2018-07-30 10:27:16 UTC
There are such .desktop files in this location (/usr/share/applications/kde4/): amzdownloader.desktop, kmailservice.desktop, knetattach.desktop, ktelnetservice.desktop, org.kde.amarok_containers.desktop, org.kde.amarok.desktop.
But I do not use any of these programs except Amarok.

Similar bug exist with VLC (media control button "play/pause" works only for current track), but I still not filled the bug report for this problem already.
Comment 12 RaitaroH 2018-08-20 12:09:21 UTC
If I may jump into this for a bit.

I personally have the same issue with Audacious, that can run with qt interface (audacious --qt). I always run it as qt, but from time to time the controls disappear. I want to mention that I usually start audacious using a keyboard shortcut set with the default "Custom Shortcuts" tool (command is `audacious --qt -tm && wmctrl -a audacious`, where -t is to play/pause and -m is to show main window that sometimes backfires thus wmctrl). 

Closing the application sometimes gets the controls back but right now I've tried 5 times with no effect. Only after I started audacious in gtk I got the controls back, then I switched to qt again and the controls are still there, for some reason. Closing audacious and open it back up... controls are there. Also restarting plasma doesn't fix the issue either, I guess it depends.

Also, if it helps. Sometimes I also don't get the cover of the song in the thumbnail, just the default icon when minimized or the window preview when maximized (the icon is sometimes crisp svg form... other times is so pixelated is not even funny, thing that happens when I don't get the controls usually. When I have the controls I get crisp icon and cover art if available). Also sometimes vlc has the play button (▶) grayed out for some reason.

Here are the commands asked for previously:

$ qdbus org.mpris.MediaPlayer2.audacious /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.DesktopEntry 
audacious

$ ls /usr/share/applications/kde4 
kmailservice.desktop  knetattach.desktop  ktelnetservice.desktop

$ xprop
WM_CLASS(STRING) = "audacious", "Audacious"

I am on KDE Neon 5.13.4. I installed audacious from "ppa:nilarimogard/webupd8"
Comment 13 Nate Graham 2020-01-13 05:55:16 UTC
*** Bug 396863 has been marked as a duplicate of this bug. ***
Comment 14 Nate Graham 2020-07-12 04:08:29 UTC
Works for me with current git master. Can you check again with Plasma 5.19 or git master?
Comment 15 uRohan 2020-07-15 08:18:48 UTC
Operating System: openSUSE Tumbleweed 20200713
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
Kernel Version: 5.7.7-1-default
OS Type: 64-bit

Amarok Version: 2.9.70

Hi, everything seems to be working fine.
Comment 16 Christoph Feck 2020-07-28 13:21:29 UTC
Thanks for the update; changing status.