···4141 pkgs.xdg-desktop-portal-gtk
4242 pkgs.xdg-desktop-portal-wlr
4343 ];
4444- # xdg.portal.wlr.enable = true;
4544 xdg.portal.config.common.default = "wlr";
4545+ # Firefox (and chromium, obs) always ask the ScreenCast portal for
4646+ # MONITOR|WINDOW. xdg-desktop-portal-wlr then skips the slurp entry of its
4747+ # default chooser list — slurp cannot pick a window — and falls through to the
4848+ # dmenu-style entries (wmenu, wofi, rofi, bemenu, ...), none of which nixpkgs
4949+ # wraps into the portal: NixOS/nixpkgs#471244. So SelectSources died with
5050+ # "no output found" before any picker appeared and every screenshare failed.
5151+ # Pin an absolute dmenu chooser, which lists monitors and windows alike.
5252+ xdg.portal.wlr.settings.screencast = {
5353+ chooser_type = "dmenu";
5454+ chooser_cmd = "${lib.getExe pkgs.wofi} -d -n --prompt='Select a source to share:'";
5555+ };
4656 fonts.enableDefaultPackages = true;
47574858 # PipeWire runs system-wide and is usually not ready yet when sway starts the