Bug 454985 - Screen cast doesn't seem to work with x11 backend
Summary: Screen cast doesn't seem to work with x11 backend
Status: REPORTED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: 5.24.90
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: X11-only
Depends on:
Blocks:
 
Reported: 2022-06-07 16:54 UTC by Billy
Modified: 2025-02-24 17:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Billy 2022-06-07 16:54:02 UTC
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
Comment 1 Billy 2022-06-08 18:39:50 UTC
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"
Comment 2 Billy 2022-06-08 18:45:10 UTC
    if (!WaylandIntegration::isStreamingAvailable()) {
        qCWarning(XdgDesktopPortalKdeScreenCast) << "zkde_screencast_unstable_v1 does not seem to be available";
        return 2;
    }
Comment 3 Nicolas Fella 2024-12-25 15:50:03 UTC
The screencast portal is not implemented on X11
Comment 4 TraceyC 2025-02-24 17:58:10 UTC
Adding the x11-only keyword