Closed mightyiam closed 3 years ago
So I'm running arch/sway with wofi. My screensharing broke today. However, I made a config change that fixed it. I think the issue was to do with screen selection based on the fix. Anyway, here's the change I made. You'll need to augment if wofi is not installed.
Create the following file: ~/.config/xdg-desktop-portal-wlr/config
[screencast]
chooser_type=dmenu
chooser_cmd=wofi --show=dmenu
Someone posted that on reddit a month ago and for some reason it fixed it. To test, I restarted the xdg and xdg wlr services and it started working the mozilla gum test and obs (thought I had to restart obs of course).
The reason I think it has to do with screen/output selection is the config just changes how the output is chosen. I imagine rofi would also work as well (if you had the correct command. Your problem may be unrelated but the above is worth a shot.
I am able to share screen now. I don't know what changed. I made some package upgrades. I rebooted. This issue should be closed. Thanks a lot for this project.
I think when I fixed it, it had nothing to do with the recommendation above. I think just restarting xdg-desktop-portal-wlr and xdg-desktop-portal (without restarting pipewire afterwards) is what did it for me.
What's wrong
I'm using this page to test and the capture is all black.
Chromium output
Troubleshooting
The following is me going through the troubleshooting page one point at a time.
I read that page about the environment variables and systemd.
It seems that the chromium I'm using is built against pipewire 0.3, because I'm using nixpkgs 21.05 and here's the package for chromium depending on pipewire: https://github.com/NixOS/nixpkgs/blob/21.05/pkgs/applications/networking/browsers/chromium/default.nix#L5 And here's pipewire: https://github.com/NixOS/nixpkgs/blob/nixos-21.05/pkgs/development/libraries/pipewire/default.nix#L49
I'm skipping firefox for now.
It's enabled. I'm looking at the
chrome://flags
page and it's right on top, marked in blue and says "Enabled" on the drop down.Let's skip this part and see that we can capture manually for now.
Is this failure an issue?
Skipping for now.
Not sure how it's done, but it seems that it is done somehow correctly.