Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen sharing #13

Closed
denisok opened this issue Jul 1, 2020 · 8 comments
Closed

Screen sharing #13

denisok opened this issue Jul 1, 2020 · 8 comments

Comments

@denisok
Copy link
Contributor Author

denisok commented Jul 1, 2020

I'm trying to get screen sharing working with xdg-desktop-portal-wlr and chromium. Chromium has the enable-webrtc-pipewire-capturer flag enabled. I installed pipewire (distro package) and compiled xdg-desktop-portal-wlr myself. When I go to the mozilla getUserMedia test page and click the Screen Capture button, chromium prompts me to choose what I want to share, but I see no screens or windows that I could share
03:56 When I click that button I do see pipewire, xdg-desktop-portal and xdg-desktop-portal-wlr start up, and they stay running successfully
03:56 There is no output from chromium that would indicate something is wrong. How can I debug this?
04:11 Actually, it looks exactly like https://bugs.chromium.org/p/chromium/issues/detail?id=1067113 The invisible window mentioned in step 7 is indeed there. And indeed I now see the wiki note says that Arch's Chromium needs libpipewire02, so it must be the same problem with my distro's package
05:53 Actually actually, my distro specifically patches chromium to compile with pipewire 0.3 instead of 0.2 using a patch that fedora also carries, and apparently screensharing is supposed to work with that patch. But that patch was broken until a few hours ago, heh
05:53 That was one heck of a merry-go-round

@agraul
Copy link
Member

agraul commented Jul 13, 2020

@agraul
Copy link
Member

agraul commented Jul 15, 2020

I just saw that xdg-desktop-portal-wlr is on its way to Tumbleweed https://build.opensuse.org/request/show/820843

@denisok
Copy link
Contributor Author

denisok commented Aug 5, 2020

So I installed xdg-desktop-portal-wlr and it works. At least I can share current screen. If there are more screens, there is no choice to make.

Also sharing separate apps is not working.

@denisok
Copy link
Contributor Author

denisok commented Aug 5, 2020

swaywm/sway#5607
for systemd, and I would update profile.d to set it there as well.

@denisok
Copy link
Contributor Author

denisok commented Aug 5, 2020

Selecting output is the new feature here:
emersion/xdg-desktop-portal-wlr#12

@denisok
Copy link
Contributor Author

denisok commented Aug 5, 2020

So actually only thing that is need to be setup correctly is the XDG_SESSION_TYPE if sway starts from tty.
Graphical login managers, like GDM do set it correctly.

For tty this needs to be landed:
swaywm/wlroots#2304

@denisok
Copy link
Contributor Author

denisok commented Aug 5, 2020

https://build.opensuse.org/request/show/824519
submitted dependencies to the OBS.
XDG_SESSION_TYPE for the tty would be fixed upstream.

@denisok denisok closed this as completed Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants