Bug 456485 - Cannot record the screen with OBS Studio from flathub on Wayland
Summary: Cannot record the screen with OBS Studio from flathub on Wayland
Status: RESOLVED FIXED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-08 17:32 UTC by Patrick Silva
Modified: 2022-10-28 16:26 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2022-07-08 17:32:36 UTC
SUMMARY
I have OBS Studio from flathub installed on neon unstable.
I added 'Screen capture (Pipewire)' to Sources list of OBS Studio, selected my screen
in the portal window but OBS Studio is unable to capture my screen.
The area where OBS Studio should show my screen remains black.

EXPECTED RESULT
we are able to record the screen with OBS Studio on Wayland

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Graphics Platform: Wayland
Comment 1 Nate Graham 2022-07-12 16:25:03 UTC
When you first launched OBS, did you see a dialog asking you to select an output to record? If not, it's likely that the desktop portal wasn't running, and that's the cause of the issue. Can you try this?

kquitapp5 xdg-desktop-portal
kquitapp5 xdg-desktop-portal-kde
/usr/libexec/xdg-desktop-portal &
kstart5 ~/kde/usr/lib64/libexec/xdg-desktop-portal-kde
flatpak run com.obsproject.Studio
Comment 2 Patrick Silva 2022-07-13 20:23:36 UTC
(In reply to Nate Graham from comment #1)
> When you first launched OBS, did you see a dialog asking you to select an
> output to record? 

No dialog appears for me. After opening OBS, I see an icon in system tray whose tooltip says
'Recording screen <my screen>...
Press to cancel"
on mouseover. The problem persists after your commands.
Comment 3 Patrick Silva 2022-07-13 20:28:02 UTC
I get error messages after the first two commands.

$ kquitapp5 xdg-desktop-portal
"Application xdg-desktop-portal could not be found using service org.kde.xdg-desktop-portal and path /MainApplication."

$ kquitapp5 xdg-desktop-portal-kde
"Application xdg-desktop-portal-kde could not be found using service org.kde.xdg-desktop-portal-kde and path /MainApplication."
Comment 4 Aleix Pol 2022-07-13 21:03:57 UTC
This is xdg-desktop-portal-kde not being found, make sure it's properly installed.
Comment 5 Patrick Silva 2022-07-13 21:27:58 UTC
xdg-desktop-portal-kde was already installed. Reinstalled it right now and the error messages persist.
Comment 6 Nate Graham 2022-07-14 14:44:31 UTC
I think that means there's a setup issue of some sort.
Comment 7 Harald Sitter 2022-07-14 19:16:27 UTC
Eh... You cannot kquitapp5 either of those apps as neither is registered at org.kde.* those errors don't mean it's not found, they mean the command makes no sense :P
Comment 8 Patrick Silva 2022-09-23 19:50:12 UTC
Weirdly the bug persists with OBS flatpak, but the Snap version works.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Graphics Platform: Wayland
Comment 9 Patrick Silva 2022-10-28 16:26:03 UTC
Cannot reproduce on neon unstable based on ubuntu 22.04.