Bug 454985

Summary: Screen cast doesn't seem to work with x11 backend
Product: [Plasma] xdg-desktop-portal-kde Reporter: Billy <billyaraujo>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: normal CC: aleixpol, jgrulich, nate, nicolas.fella
Priority: NOR Keywords: X11-only
Version First Reported In: 5.24.90   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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