SUMMARY Running this script works well on KDE using x11 it gives an error calling CreateSession: https://gitlab.gnome.org/-/snippets/19 The error it gives is: "Failed to create session: 2" Note: both backends seem to work in gnome. STEPS TO REPRODUCE 1. Use x11 backend on KDE 2. Run the script 2. Check the error OBSERVED RESULT "Failed to create session: 2" EXPECTED RESULT Screen cast working as it does on the wayland backend SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: OpenSUSE Tumbleweed (available in About System) KDE Plasma Version: 5.24.5 KDE Frameworks Version: 5.94 Graphics Platform: x11 Qt Version: 5.15.2 ADDITIONAL INFORMATION
Log: Jun 08 19:38:27 localhost.localdomain xdg-desktop-portal-kde[2489]: xdp-kde-screencast: CreateSession called with parameters: Jun 08 19:38:27 localhost.localdomain xdg-desktop-portal-kde[2489]: xdp-kde-screencast: handle: "/org/freedesktop/portal/desktop/request/1_55/u1" Jun 08 19:38:27 localhost.localdomain xdg-desktop-portal-kde[2489]: xdp-kde-screencast: session_handle: "/org/freedesktop/portal/desktop/session/1_55/u1" Jun 08 19:38:27 localhost.localdomain xdg-desktop-portal-kde[2489]: xdp-kde-screencast: app_id: "org.kde.konsole" Jun 08 19:38:27 localhost.localdomain xdg-desktop-portal-kde[2489]: xdp-kde-screencast: options: QMap() Jun 08 19:38:27 localhost.localdomain xdg-desktop-portal-kde[2489]: xdp-kde-screencast: zkde_screencast_unstable_v1 does not seem to be available Jun 08 19:38:27 localhost.localdomain xdg-desktop-portal-kde[2489]: xdp-kde-session: "org.freedesktop.impl.portal.Session" Jun 08 19:38:27 localhost.localdomain xdg-desktop-portal-kde[2489]: xdp-kde-session: "Close" Jun 08 19:38:27 localhost.localdomain xdg-desktop-portal-kde[2489]: xdp-kde-session: "/org/freedesktop/portal/desktop/session/1_55/u1"
if (!WaylandIntegration::isStreamingAvailable()) { qCWarning(XdgDesktopPortalKdeScreenCast) << "zkde_screencast_unstable_v1 does not seem to be available"; return 2; }
The screencast portal is not implemented on X11
Adding the x11-only keyword