Pipewire Screen Sharing

Essentially, the screen capture doesn’t work (in OBS). I’m using KDE Plasma 6. All the relevant portals are running, so are Pipewire and Wireplumber.

Initially, the pop-up just never showed up. And checking the log of plasma-xdg-desktop-portal-kde.service showed

xdp-kde-screencast: zkde_screencast_unstable_v1 does not seem to be available

However, when creating a fresh user account, all seems to work correctly. So I figured something about my user environment must be messed up. I backed up my kwinrc and removed it. I also checked to make sure I had nothing in my ~/.config or ~/.local/share mentioning portals or Pipewire.

On my main user account, I was using Nix home-manager. Thinking it might be related, I uninstalled it, and it seems to have changed the situation — but now I have a different problem (so it shouldn’t be relevant any more, otherwise I would’ve asked in the NixOS forums).

The Pipewire screen capture option doesn’t show up in OBS at all. Checking the logs, I see

info: [pipewire] No capture sources available

And no errors for plasma-xdg-desktop-portal-kde.service. Does this mean that Pipewire is working? And if so, why doesn’t it recognize my screen, when in a fresh user account it does?

I’m really at a loss here.

N.B. I’m using Fedora Asahi Remix. As everything works smoothly in a fresh user account, I don’t think it’s the issue.

Rebooting seems to have fixed the issue (re-logging didn’t).

So maybe it was Nix.