I saw similar topics already on forums, but mine is a slightly different issue.
I opened OBS for something for the first time on wayland since I switched in October. Back on X11 I used window capture once.
But Now I do not see options to add Screen Capture / Display capture or Window capture in Sources Add Menu.
Similar topics say they are recording black screen but they see an option to add Sources. I do not see such option.
I saw a solution somewhere to install xdg portal desktop kde So I did with Pacman, but I still dont see an option. so I asked Gemini it told me to run OBS via this command - QT_QPA_PLATFORM=wayland obs
I still don’t see the options.
I do remember that I had those options on X11, But after new update I don’t have X11 to log into.
Seems like this command fixed it - sudo pacman -S xdg-desktop-portal xdg-desktop-portal-kde pipewire libpipewire
I re logged and I see a option and it is capturing the screen, (The new window opens after clicking Open Selector and gives option to capture desktops/windows)
Although I’ll still wanna know what happened here for reference in future.
That would be the case if you updated from Plasma 6.3 to Plasma 6.5.
Plasma removed the X11 session with the release of 6.4 and as the package manager cannot automagically choose your preference, one need to install the x11 session manually after update.
This has been a part of every update announcement since Plasma 6.4 was rolled out on testing.
To get your x11 session back (be sure to select it manually in session selector before login)
sudo pacman -Syu plasma-x11-session
obs-studio has a dependency on pipewire and pipewire will pull libpipewire as it's own dependency - so the remainder is xdg-desktop-portal-kdeportal which will pullxdg-desktop-portal` as it’s own dependency, and you may or may not have had it synced to your system.
After a stable update - which consist of many changed packages - it is a requirement to restart the system.
If you didn’t have the xdg-desktop-portal-kde before then it is quite possible it was that package that made the difference - especially when using the wayland compositor.