Skip to main content
Topic: Screen recording/cast with pipewire (Read 628 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Screen recording/cast with pipewire

I get an error while using obs-studio when I try to use the builtin screen/window recording.

Code: [Select]
error: [pipewire] Error creating screencast session: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: L’interface « org.freedesktop.portal.ScreenCast » n’existe pas pour l’objet à l’emplacement /org/freedesktop/portal/desktop
I get the error even if I start manually `/usr/lib/xdg-desktop-portal`

How can I register xdg-desktop-portal in DBus ?

In `/usr/lib/systemd/user/xdg-desktop-portal.service`
Code: [Select]
[Unit]
Description=Portal service

[Service]
Type=dbus
BusName=org.freedesktop.portal.Desktop
ExecStart=/usr/lib/xdg-desktop-portal

In `/usr/lib/systemd/user/xdg-desktop-portal-wlr.service`
Code: [Select]
[Unit]
Description=Portal service (wlroots implementation)
PartOf=graphical-session.target
After=graphical-session.target
ConditionEnvironment=WAYLAND_DISPLAY

[Service]
Type=dbus
BusName=org.freedesktop.impl.portal.desktop.wlr
ExecStart=/usr/lib/xdg-desktop-portal-wlr
Restart=on-failure