Public bug reported: Using Kubuntu 26.04, when trying to screen share on Google Chrome, Firefox or Brave, maybe the first time it works, but if you try to stop and share X amount of times, typically around 4 to 8, it will stop working and the box that shows in the screen sharing popup inside the browser will show empty. In KDE, the red recording round icon that shows in the system tray will stay on and will fail to screen share properly after that, requiring a reboot.
This report is related to the post at: https://discourse.ubuntu.com/t/permanent-fix-for-screen-sharing-not- working-in-kde-firefox-brave-chrome/86057 TEMP SOLUTION: After testing out for 2 to 3 days already several solutions, from editing the kde-portals.conf file, to editing the systemd file for it, to even editing the launch options for all browsers (eg: jumping from Wayland to X11 and back, disabling opengl, disabling vulkan, enabling webrtc flag options, etc..), the one that worked was going to this link and downloading the (currently) 1.20.3 version of xdg-desktop-portal https://packages.ubuntu.com/questing/amd64/xdg-desktop-portal/download Then installing it via dpkg and then marking it as a HOLD package so any updates do NOT update the package too. After rebooting I was able to test 30 times on Brave (Continuously to try to break the xdg-desktop-portal), then tested 30 on Chrome and 30 on Firefox. In all cases, just the fact that they passed 10 consecutive tests means that the issue is the 1.21 version of the package. you can see the changelog of it here: https://launchpad.net/ubuntu/+source/xdg- desktop-portal/+changelog This solves the main issue I was having with my clients and teammates. In order to test it on your end, simply open google meet, zoom, whereby, discord or whatever you are using to screen share and start sharing something and stop it. Then share again. Then stop. Keep on doing this as many times as you want. With version 1.21 it will fail around attempt number 4 to 8 for me. With version 1.20 it did not fail and I was already passing 30 with Brave. I tested chrome and firefox too just to be 100% sure this was the solution. I will post any updates here because this was critical for me. The browser launcher does not have any parameters on it. Before it had: --ozone-platform=x11 %U The systemctl --user edit xdg-desktop-portal is as it comes by default with Kubuntu 26.04 The kde-portals.conf file is empty, before I had put things like this which did not work: [preferred] default=kde org.freedesktop.impl.portal.ScreenCast=kde org.freedesktop.impl.portal.Screenshot=kde [screencast] restore_token=false So currently everything is default EXCEPT for the xdk-desktop-portal package rolling back from the default 1.21.1 to the 1.20.3 and then marking it as hold to avoid upgrades applying to it. So far today for example I have shared over 25 more times between clients and teammates. ProblemType: Bug DistroRelease: Ubuntu 26.04 Package: xdg-desktop-portal 1.20.3+ds-1ubuntu1.1 ProcVersionSignature: Ubuntu 7.0.0-29.29-generic 7.0.12 Uname: Linux 7.0.0-29-generic x86_64 ApportVersion: 2.34.1-0ubuntu0.1 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: KDE Date: Mon Aug 10 18:42:16 2026 InstallationDate: Installed on 2026-04-24 (108 days ago) InstallationMedia: Kubuntu 26.04 "Resolute Raccoon" - Release amd64 (20260423) SourcePackage: xdg-desktop-portal UpgradeStatus: No upgrade log present (probably fresh install) modified.conffile..etc.default.apport: # set this to 0 to disable apport, or to 1 to enable it # you can temporarily override this with # sudo service apport start force_start=1 enabled=0 mtime.conffile..etc.default.apport: 2026-04-24T14:13:35.651871 ** Affects: xdg-desktop-portal (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug resolute wayland-session -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to xdg-desktop-portal in Ubuntu. https://bugs.launchpad.net/bugs/2163211 Title: Screen sharing not working in KDE (With a temp fix) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-portal/+bug/2163211/+subscriptions -- desktop-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
