Bug 489089 - System tray disappears after an app playing media is closed
Summary: System tray disappears after an app playing media is closed
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Media Player widget (other bugs)
Version First Reported In: master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 489093 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-06-24 05:22 UTC by Prajna Sariputra
Modified: 2024-06-25 11:41 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screen recording of the bug using VLC (595.70 KB, video/mp4)
2024-06-24 05:22 UTC, Prajna Sariputra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Prajna Sariputra 2024-06-24 05:22:43 UTC
Created attachment 170896 [details]
Screen recording of the bug using VLC

SUMMARY
With git master Plasma 6.2 compiled today using kdesrc-build, if an app plays media and uses MPRIS so the media player applet in the system tray appears (so far I tried Firefox with the Plasma Integration extension, VLC and Elisa), and then the app is closed (or in the case of Firefox closing the tab that was playing media), instead of just the media player applet deactivating the whole system tray disappears instead, at least visually.

There is still a small invisible space where I can right click and have the context menu for the system tray appear so that I can open the system tray configuration dialog, but I can no longer access any of the applets/tray icons in that state, unless I restart plasmashell.

Disabling the media player applet completely works around the problem, but not just having it be always hidden instead of shown when relevant or always shown.

STEPS TO REPRODUCE
1. Play some media in an app that supports MPRIS (at least VLC, Elisa, Firefox with the Plasma Integration extension)
2. Close the media player app

OBSERVED RESULT
The system tray disappears from view, and the tray icons are inaccessible.

EXPECTED RESULT
Only the media player applet disappears (if set to "Show when relevant").

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.80
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.1
Kernel Version: 6.9.5-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 6800H with Radeon Graphics
Memory: 30.6 GiB of RAM
Graphics Processor: AMD Radeon 680M

ADDITIONAL INFORMATION
I also tried the KDE neon-unstable-20240623-1119.iso live image in a VM, but I was unable to reproduce it there, so it looks like something specific to my system somehow?

plasma-workspace is at commit d7caec38eef9d8758463d026aca1e0da15b6289f, and plasma-desktop is at commit 5d60849477e814e37d557996c1ef3eeab0c62ca1.
Comment 1 alanas.00 2024-06-24 10:04:40 UTC
*** Bug 489093 has been marked as a duplicate of this bug. ***
Comment 2 orkenwhite 2024-06-24 14:19:46 UTC
It strangely only happens when the system tray is on a panel, not when it is on the desktop...
Comment 3 Marco Martin 2024-06-25 11:41:35 UTC
Fixed by https://invent.kde.org/plasma/libplasma/-/merge_requests/1158