Seeing as you don't have X11 sources (e.g. xshm), you're running a Wayland session. What desktop are you using (the output of the terminal command inxi -Sz might help)? Pipewire should be able to capture an application provided there's a sufficient backend for the xdg-desktop-portal.