Bug 466106 - Don't register MPRIS interface when not doing anything controllable by MPRIS
Summary: Don't register MPRIS interface when not doing anything controllable by MPRIS
Status: REOPENED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 24.12.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-19 21:44 UTC by Łukasz Konieczny
Modified: 2025-03-21 20:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 23.04
Sentry Crash Report:


Attachments
Screenshot of media player applet, when 36 windows of Gwenview are opened (684.20 KB, image/png)
2023-02-19 21:44 UTC, Łukasz Konieczny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Konieczny 2023-02-19 21:44:58 UTC
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
Comment 1 Nate Graham 2023-02-22 00:24:20 UTC
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.
Comment 2 Nate Graham 2023-02-27 21:31:58 UTC
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
Comment 3 Łukasz Konieczny 2023-07-02 12:13:08 UTC
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.
Comment 4 Łukasz Konieczny 2024-10-06 21:17:36 UTC
The bug still exists in Plasma 6.1.5.
Comment 5 Łukasz Konieczny 2024-10-06 21:18:32 UTC
(Gwenview 24.08.1)
Comment 6 Łukasz Konieczny 2025-03-21 20:57:53 UTC
The bug still exists in Gwenview 24.12.3. I can provide any information needed to fix this bug.