Created attachment 156513 [details] Screenshot of media player applet, when 36 windows of Gwenview are opened SUMMARY A problem specific to me, but perhaps somebody has the same problem. I'm listening to music, using some audio player (for example Strawberry). In the same time I have 36 windows of Gwenview opened, in every window is a photo of my friends. I love those photos, so I want them to be opened simultaneously in 36 windows, one window per photo. All of those Gwenview windows register themselves as media player and the top of media player applet is littered by Gwenview icons, which even don't fit in the space in top of the applet. If I want to stop playing music in Strawberry and play something in Firefox, and then switch back to Strawberry, I can't, because I'm even not able to point to icon of Strawberry in the top of the applet. I have attached screenshot, to show you the problem. I would like to have an option to exclude particular programs from registering themselves as media player in this applet. Then I would exclude Gwenview, because I don't need to command Gwenview from this applet. STEPS TO REPRODUCE 1. Open way more windows of, for example, Gwenview, than you think you can, for example 40 windows of Gwenview, and observe, that each Gwenview window registers itself as media player in applet. OBSERVED RESULT EXPECTED RESULT SOFTWARE/OS VERSIONS Operating System: Kubuntu 22.10 KDE Plasma Version: 5.26.5 KDE Frameworks Version: 5.102.0 Qt Version: 5.15.6 Kernel Version: 6.0.12-76060006-generic (64-bit) Graphics Platform: X11 Processors: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz Memory: 31.2 GiB of RAM Graphics Processor: Mesa Intel® Xe Graphics Manufacturer: System76 Product Name: Darter Pro System Version: darp7 ADDITIONAL INFORMATION
This seems like a bug in Gwenview; it shouldn't register an MPRIS interface unless it's actually doing something controllable via MPRIS (e.g. playing a slideshow). This should be fixed by https://invent.kde.org/graphics/gwenview/-/merge_requests/180.
Git commit 9a9697bc7627d5eb15c5e512a4a407af11e84e61 by Nate Graham, on behalf of Joshua Goins. Committed on 27/02/2023 at 20:41. Pushed by ngraham into branch 'master'. Stop Gwenview from showing MPRIS data even when no slideshow is started M +11 -1 lib/mpris2/mpris2service.cpp M +3 -0 lib/mpris2/mpris2service.h M +1 -16 lib/mpris2/mprismediaplayer2player.cpp M +0 -1 lib/mpris2/mprismediaplayer2player.h https://invent.kde.org/graphics/gwenview/commit/9a9697bc7627d5eb15c5e512a4a407af11e84e61
The bug still exists. The situation happens when i suspend system to RAM with many Gwenview instances opened, and then resume from suspend. It also happens when Plasma shell crashes and relaunches itself while many instances of Gwenview are opened.
The bug still exists in Plasma 6.1.5.
(Gwenview 24.08.1)
The bug still exists in Gwenview 24.12.3. I can provide any information needed to fix this bug.