Window Capture Option Not Showing on OBS

Hello,

I’m new to EOS and I’m having an issue with OBS. There is no Window Capture option in OBS. I searched for a solution and tried the steps in this forum post to install Pipewire.

I also saw this discussion and tried running OBS as root. The Window Capture option appeared when running as root, but I want it to work with a normal user.

I tried installing xdg-desktop-portal-gnome, but the Window Capture option still doesn’t show up for a normal user. Does anyone know how to fix this issue?

Welcome to the community! :vulcan_salute: :enos_flag:

If you already have pipewire, xdg-desktop-portal, and xdg-desktop-portal-gnome installed, then you may need to set environment variables.

Before doing this though, please post the output of:

pacman -Q | grep -A 0 -E "(xdg|wire|obs)" && pacman -Qi obs-studio

This is to check that you have everything you need, while also checking dependencies.

The Possible Fix: Set Environment Variables

Open the file with sudo nano /etc/environment and insert the lines below:

export QT_QPA_PLATFORM=wayland
export XDG_CURRENT_DESKTOP=gnome
export WAYLAND_DISPLAY=wayland-0

Log out and log back in and check OBS again.

If it still doesn’t work, add the line below to the same file by replacing “wayland” with “xcb”

export QT_QPA_PLATFORM=xcb

Let us know if it works.

Thank you, I have tried it, but the menu still doesn’t show when I open it again. I tried rebooting, and after I logged in, my DE just showed [pic 1] and I couldn’t do anything.

So, I modified it. In my /etc/environment there was QT_QPA_PLATFORMTHEME=qt5ct but it was commented out. I tried many combinations between this and what you suggested, and it finally succeeded when I just inserted QT_QPA_PLATFORMTHEME=qt5ct and export QT_QPA_PLATFORM=xcb.

Now the menu appears and it works, but I have a question: is this the correct approach to solve this problem?

Kinda. That’s why I asked to see the output of:

pacman -Qi obs-studio

OBS uses Qt. Whether it is Qt5 or Qt6 can make a difference. My next suggestion would’ve been installing qt5-wayland.