Created attachment 155949 [details] Showcase of the bug (recording continues despite "ended") SUMMARY When sharing a screen / window using Pipewire, an indicator appears in the system tray which is supposed to be able to be used for ending the recording / sharing at any time. However, it doesn't work at all currently. I've attached a simple video which, as you can see, continues to record even after the recording has been "ended". The behavior is the same regardless of application (also tested using Firefox screen share). It does not matter whether the recording is "ended" using right click -> end, or left click -> end (in the popup). STEPS TO REPRODUCE 1. Begin any screen / window sharing. 2. "End" the sharing using the system tray indicator. OBSERVED RESULT The indicator disappears, but the recording / sharing continues uninterrupted. EXPECTED RESULT The indicator disappears and the recording / sharing stops (forcefully, i.e. via freezing, if need be). SOFTWARE/OS VERSIONS Linux/KDE Plasma: Gentoo / 5.27 beta (available in About System) KDE Plasma Version: 5.27 beta KDE Frameworks Version: 5.102.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION -
Eek, can confirm.
Additional Info: This seems to only affect apps running outside flatpak. Those running under flatpak (tested with Slack & Google Chrome) have their recording / streaming freeze when the "end" button is clicked (expected behavior imo). Sometimes the app crashes, but I think that's an issue at the client side.
Think I've found the issue, MR is up: https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/159
Git commit eb95725ed7ca64bd52d19dd464ada7e982441cf4 by Aleix Pol Gonzalez, on behalf of Dominique Hummel. Committed on 08/02/2023 at 00:27. Pushed by apol into branch 'master'. fix streams not being ended correctly When closing a screencast session, the `closed` signal is emitted too late, this MR addresses that issue. Tested in Firefox and OBS using window & screen sharing, ending the recording now always either freezes the stream, or disables it (depending on app). M +3 -2 src/session.cpp https://invent.kde.org/plasma/xdg-desktop-portal-kde/commit/eb95725ed7ca64bd52d19dd464ada7e982441cf4
Git commit c6605b4ef3784b04f242afe8331b2095bf4d298e by Aleix Pol Gonzalez, on behalf of Dominique Hummel. Committed on 08/02/2023 at 00:27. Pushed by apol into branch 'cherry-pick-eb95725e'. fix streams not being ended correctly When closing a screencast session, the `closed` signal is emitted too late, this MR addresses that issue. Tested in Firefox and OBS using window & screen sharing, ending the recording now always either freezes the stream, or disables it (depending on app). (cherry picked from commit eb95725ed7ca64bd52d19dd464ada7e982441cf4) M +3 -2 src/session.cpp https://invent.kde.org/plasma/xdg-desktop-portal-kde/commit/c6605b4ef3784b04f242afe8331b2095bf4d298e