xdg-desktop-portal-hyprland: screensharing not working on hyprland, but works on sway

Screen sharing isn’t working on neither obs nor firefox, it just shows up as a blank region. However everything is fine on sway. I’ve tried to reproduce the workflow as much as possible on both the WMs.

hyprland: v0.24.1 xdg-desktop-portal-hyprland: v0.2.1

I’m on gentoo and both the packages are from ::guru repository. I’ve attached the corresponding logs for pipewire, obs and xdph on sway and hyprland below.

obs_hyprland.txt obs_sway.txt

pipewire_hyprland.txt pipewire_sway.txt

xdph_hyprland.txt xdph_sway.txt

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 23 (8 by maintainers)

Most upvoted comments

I have mistakenly turned on bitdepth 10, which is definitely the root cause here in my case. Everything seems fine now, both screensharing and screenshot work as usual.

Although you had something else this actually was an issue with hyprland lol. Anyways, seems like it has been fixed.

brilliant, maybe instead of adding noise you consider adding the thing I asked for to debug this issue further?

fixed in c0e2339

Unfortunately, neither did it fix my screensharing nor did it fix the black screenshot issue others have reported too 😃

Edit: I’ve compiled both hyprland and xdg-desktop-portal-hyprland from the latest commits at the time of posting of this comment

For me the screen sharing works on Firefox.

Chromium broke since the upgrade from version 111 to 112.

Try using -git versions of both

this fixed it for me (AUR)

check on -git with 25f14294a84df1a2a840a92fd89ff4e1fd72f01e (hyprland)