This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Screen sharing on KDE Neon doesn't work under Wayland

Tags: None
(comma "," separated)
jaytuckey
Registered Member
Posts
6
Karma
0
I'm running a fresh install of KDE Neon, and have logged in using Wayland. When I try doing a screen share it doesn't work. I've tested using Firefox, running with MOZ_ENABLE_WAYLAND=1 set, and I'm testing with this page:
https://mozilla.github.io/webrtc-landing/gum_test.html

I've also tested in Google Chrome with chrome://flags -> #ozone-platform-hint set to "auto"

When I try triggering a screen share I get a blank black box, with a mouse cursor on it.

I've tried this with OpenSUSE Tumbleweed, and screen share under wayland works there, tested with Firefox.

Is this a known issue in KDE Neon? Any way for me to report it?

[Edit]
This is caused by xdg-desktop-portal being out-of-date, and so not properly triggering the KDE screen selection dialog. It can be fixed by upgrading xdg-desktop-portal from ppa:hggg-0/neon-backports. Many thanks to @claydoh and @sstaeglich for helping diagnose this issue.
I've written up full instructions here: https://jaytuckey.name/2022/03/14/how-t ... d-session/

Last edited by jaytuckey on Mon Mar 14, 2022 1:47 am, edited 2 times in total.
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS
You probably need to switch over completely to pipewire for this.
I needed to do some screen recording, and had to do this so that I could use OBS for screen recording in Wayland - the only real, useful option.

I *think* I followed this tutorial for it, or something similar :
https://linuxconfig.org/how-to-install- ... untu-linux

In any case, this does get me Wayland screen recording in OBS 27.2.2, using the flatpak (ppa version does not work for this), and testing your link, it works in both FF and Chrome for me.


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
jaytuckey
Registered Member
Posts
6
Karma
0
Thanks @claydoh I'll give that a try and see how it goes.
jaytuckey
Registered Member
Posts
6
Karma
0
I have tried the steps you suggested, @claydoh, but no luck - screen sharing still doesn't work for me. When I try to share, it doesn't even prompt for screen share permissions, so I wonder if the xdg-desktop-portal-kde isn't set up correctly. I can see it running in the background, but don't get prompted to accept the permissions. In OBS I can't even see screen share as an option. I've also confirmed that I'm running OBS from Flatpak, which I am. Interestingly, when I start it on the command line, I see this in the text during start-up:
Code: Select all
~[13:22]> flatpak run com.obsproject.Studio
...
info: [pipewire] No captures available

This is how I've confirmed that my pipewire is upgraded to the latest, as per the article:
Code: Select all
~[13:20]> pactl info | grep "Server Name"
Server Name: PulseAudio (on PipeWire 0.3.48)
sstaeglich
Registered Member
Posts
68
Karma
0
xdg-desktop-portal is just too old. You could try it with the the version of ppa:hggg-0/neon-backports
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS
I wonder if there was something else I needed. I can't recall. Will dig and see if I find anything.


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS
sstaeglich wrote:xdg-desktop-portal is just too old. You could try it with the the version of ppa:hggg-0/neon-backports


I am using whatever is in Neon, with no issue:

Code: Select all
$ apt policy xdg-desktop-portal
xdg-desktop-portal:
Installed: 1.8.1-0xneon+20.04+focal+unstable+build11
Candidate: 1.8.1-0xneon+20.04+focal+unstable+build11
Version table:
*** 1.8.1-0xneon+20.04+focal+unstable+build11 100
100 /var/lib/dpkg/status
1.6.0-1 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages


This version is more current than what is in that PPA.


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
jaytuckey
Registered Member
Posts
6
Karma
0
Oh, interesting, my version is older:
Code: Select all
~[06:53]> apt policy xdg-desktop-portal
xdg-desktop-portal:
  Installed: 1.6.0-1
  Candidate: 1.6.0-1
  Version table:
 *** 1.6.0-1 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

I wonder why mine hasn't been upgraded.
sstaeglich
Registered Member
Posts
68
Karma
0
claydoh wrote:
sstaeglich wrote:xdg-desktop-portal is just too old. You could try it with the the version of ppa:hggg-0/neon-backports


I am using whatever is in Neon, with no issue:

Code: Select all
$ apt policy xdg-desktop-portal
xdg-desktop-portal:
Installed: 1.8.1-0xneon+20.04+focal+unstable+build11
Candidate: 1.8.1-0xneon+20.04+focal+unstable+build11
Version table:
*** 1.8.1-0xneon+20.04+focal+unstable+build11 100
100 /var/lib/dpkg/status
1.6.0-1 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages


This version is more current than what is in that PPA.


Nice but this package isn't provided in the stable branch.
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS
sstaeglich wrote:
claydoh wrote:
sstaeglich wrote:xdg-desktop-portal is just too old. You could try it with the the version of ppa:hggg-0/neon-backports


I am using whatever is in Neon, with no issue:

Code: Select all
$ apt policy xdg-desktop-portal
xdg-desktop-portal:
Installed: 1.8.1-0xneon+20.04+focal+unstable+build11
Candidate: 1.8.1-0xneon+20.04+focal+unstable+build11
Version table:
*** 1.8.1-0xneon+20.04+focal+unstable+build11 100
100 /var/lib/dpkg/status
1.6.0-1 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages


This version is more current than what is in that PPA.


Nice but this package isn't provided in the stable branch.


But I am using the User edition, not the dev or testing edition.
I'll see if i can find out. Maybe this was the part I think I am forgetting?


Edit:

Apologies!!
Yup, it seems to be. I should have seen it immediately from the lack of sourcing info for the version.
Odd, as I don't normally manually install packages from other release tracks, as a matter of course. I definitely don't recall doing so.


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
jaytuckey
Registered Member
Posts
6
Karma
0
Ok, many thanks @claydoh and @sstaeglich - I've just added ppa:hggg-0/neon-backports and upgraded xdg-desktop-portal from it, and now I get prompted to select a screen, then have working screen share from Firefox and OBS Studio. 🥳 🎉

Strangely Chrome is still broken, it doesn't trigger the screen share prompt for me, but that's not a big issue, I'm sure it will be fixed in the future.

I'm guessing this will also just be fixed for all installs once Ubuntu 22.04 releases, and Neon upgrades it's base to 22.04, since that would have a newer xdg-desktop-portal included.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]