Closed roblem closed 3 years ago
The one that doesn't work is running on top of X11:
-info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
The PipeWire capture only works on Wayland, or on X11 with the OBS_USE_EGL=1
environment variable
Yes, that message confused me as I am running a wayland session and launching obs when the x11
window system message appears:
info: Distribution: "KDE Flatpak runtime" "5.15"
info: Session Type: wayland
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
Do I have to invoke the flatpak a certain way in wayland to use wayland rather than x11?
Also, for sure I am using wayland not x11 in gnome:
If I launch with QT_QPA_PLATFORM=wayland flatpak run com.obsproject.Studio
, I see the pipewire sources and I have
info: Platform: Wayland
info: Session Type: wayland
This env variable is unset on the machine that works.
This is really odd. Qt 5.15 indeed doesn't use the Wayland backend when you're running GNOME, but the KDE platform in Flathub removes this behavior. I'm not sure what's going on; perhaps there's any Qt env var to debug which backend is it picking, and why?
Not sure, but it is possible that some/all of the kde platform files were installed in an x11 session as I switched over to x11 early on in setting this computer up and forgot to switch back. Since both now work under Wayland I'll keep things as is in case anyone has ideas about how to debug the backend.
OK, the issue was the "bad" machine was setting
export QT_QPA_PLATFORM='xcb'
I removed that and it works as expected.
Fedora 34 Workstation with
pipewire
,xdg-desktop-portal-gtk
, andxdg-desktop-portal
installed. I have two machines like this both running Wayland sessions. On one, pipewire support initializes and I have pipewire screencapture sources in obs. On the other, it persists with X11 (so only X11 screen capture sources are available) even when running under wayland session. From the terminal I ranflatpak run com.obsproject.Studio
on both and captured stdout and stderr and here is thediff
:The one that works with pipewire is an upgraded machine that was running older obs versions with wayland support, so I suspect I am missing a dependency.
flatpak info
from both machines: