Screensharing not working on Plasma 6 Wayland

After doing an update, the screen sharing dialog no longer shows any shareable windows on my web browsers, Vesktop doesn’t pop up a dialog at all, and slack only lets me share non-web browser windows, while desktop screenshares are all black.

Here’s what I see in Chrome:

Choosing window/entire screen just move me back to chromium tab immediately.

and in firefox i only have the option of “use operating system settings” which does nothing.

  • KDE Neon/Plasma 6.2.0
  • NVIDIA GPU
  • Recently upgraded from 555 drivers to 560 drivers after a fix was released so that steam games would launch properly.
  • I tried downgrading xdg-desktop-portal=1.14.3-0ubuntu2 to no avail.

Screensharing WAS working outside of slack before, not sure what’s happened. Happy to provide more information if requested.

1 Like

You can find a probable solution:

1 Like

Facing exactly same issue on Arch. My setup:

  • plasma-desktop-6.2.1-1
  • pipewire-1:1.2.5-1
  • Intel® Core™ Ultra 5 125U with integrated Mesa graphics
  • ThinkPad T14 G5

As I’m on Arch, all packages are up-to-date.

UPD: Screensharing does work under X11 session, and does not under another wayland composer. I assume this issue may be related to pipewire, not to KDE.

UPD2: Chromium throws such errors when trying to share Window or Entire screen:

[30781:30781:1020/153134.735634:ERROR:screen_capture_portal_interface.cc(48)] Failed to request session: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop
[30781:30781:1020/153134.735679:ERROR:base_capturer_pipewire.cc(81)] ScreenCastPortal failed: 3

Double-checked I have xdg-portal-desktop installed and running as user service, and xdg-portal-dekstop-kde backend installed. Running xdg-desktop-portal -v gave me (among other things) next:

XDP: Using kde.portal for org.freedesktop.impl.portal.ScreenCast (config)
XDP: providing portal org.freedesktop.portal.ScreenCast

Going to read some docs to better understand how it works.

That’s not the same issue, only similar symptom.

It seems newer chrome (arch versions) a dbus service portal org.freedesktop.portal.ScreenCast for screencast, that has not been implemented in xdg-desktop-portal-kde (yet).

It is not related only to chromium-based browsers. Screensharing does not work in firefox, zoom app, vesktop, telegram.

Sorry, I’m new to KDE community; should I post this as a separate discuss?

Yes this one was for neon, adding some context, it seems to only concern Arch and maybe only certain apps in Wayland.
But even better would be a specific open a bug report (Log in to KDE Bugtracking System) for xdg-desktop-portal-kde: Missing protocol org.freedesktop.portal.ScreenCast that will get the proper attention.

The screencast protocol is the main issue. It was not widely used until recently, now there is an important user (chromium) for it.
As telegram,zoom… are electron applications i.e chromium, they exhibit the same issue.

1 Like

Thank you! Here’s the new post:
screensharing-stopped-working-after-upgrading-to-plasma-6-2-1/23979 (Can’t post with links, so here’s just uri)

Just tried to reproduce on another pc (AMD CPU and Nvidia GPU) - and sharing works. Due to this I’ve paused publishing this as a bug - probably I’ve missconfigured something.

I’m sure i’m not the only one interested on the estimate for making this happen, is it weeks? Months? AAND what is the current main trouble for screen sharing not to work on Wayland overall in for example Discord?

Thanks.

I experienced the same issue, and I found a temporary solution. Update all installed packages, including xdg-desktop-portal, to the latest version. Then restart your system. After restarting, you need to log out and log back in for the fix to work. Note that if you reboot your system, the problem might reappear. In that case, simply log out and log back in again to resolve it.

My setup:

  • Arch Linux (All package are up-to-date)
  • plasma-desktop-6.2.4-1
  • pipewire-1:1.2.7-1
  • wireplumber-0.5.6-1