Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Screencast doesn't work [SOLVED] (Read 4254 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Screencast doesn't work [SOLVED]

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:
Code: [Select]
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:
Code: [Select]
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway

exec dbus-launch --exit-with-session sway

 

Re: Screencast doesn't work

Reply #1
Running xdg-desktop-portal with -v I saw an error about xdg-desktop-portal-hyprland-git.

I removed it and now it works.

pacman -Ss didn't show it since it is not on any repo.

I have to kill xdg-desktop-portal and restart it after launching xdg-desktop-portal-wlr (manually), is that because the latter is from arch/community?

Those two have systemd services also the former from artix/world.