I use sway (wayland).
I have xdg-desktop-portal-wlr from arch/community, xdg-desktop-portal-gtk and xdg-desktop-portal installed.
I can't use kooha to screencast:
Failed to start recording
Caused by:
0: Check out <a href="https://github.com/SeaDve/Kooha#-it-doesnt-work">It Doesn't Work page</a> for help.
1: Failed to create ScreencastSession
2: Failed to create session
3: Failed to call `CreateSession` with parameters: Variant { ptr: 0x5593cfcd86a0, type: VariantTy { inner: "(a{sv})" }, value: "({'handle_token': <'kooha_1'>, 'session_handle_token': <'kooha_0'>},)" }
4: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop
I tried also vokoscreen, same freedesktop portal ScreenCast interface missing.
I checked kooha wiki.
xdg-desktop-portal is started automatically, it was working on another wayland compositor.
I have the env vars XDG_CURRENT_DESKTOP and WAYLAND_DISPLAY set.
I have pipewire, pipewire-pulse and wireplumber running.
I start it with:
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
exec dbus-launch --exit-with-session sway