@brnix if you are asking me, then my solution is to use xdg-desktop-portal-wlr.
It supports only fullscreen sharing, but at least it is consistent and works solidly.
@takethislove yeah, it was meant for you. Did you remove any of the other portal packages?
I have been using something like:
programs.hyprland = {
enable = true;
xwayland.enable = true; # Xwayland can be disabled.
# Use Hyprland from flake to get latest version (0.51.x+) for portal/screensharing fixes
# nixpkgs-unstable has build issues and outdated 0.49.0 version
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
withUWSM = false; # testing
};
@brnix hey! I think so. Once you set the alternative portal package in the configuration, it removes the original one. I am not 100% sure about it, though. With xdg-desktop-portal-wlr sharing works flawlessly. The only downside of it is you can share only full screen, but I am fine with that.