OBS and Discord screen capture not working: xdp-kde-screencast: zkde_screencast_unstable_v1 does not seem to be available

Hello everyone.

Before I start here is my system:

 ██████████████████  ████████     blueeyedcrow@blueeyedcrow
 ██████████████████  ████████     OS: Manjaro 23.0.1 Uranos
 ██████████████████  ████████     Kernel: x86_64 Linux 6.5.1-1-MANJARO
 ██████████████████  ████████     Uptime: 6h 19m
 ████████            ████████     Packages: 1498
 ████████  ████████  ████████     Shell: zsh 5.9
 ████████  ████████  ████████     Resolution: 3840x1080
 ████████  ████████  ████████     DE: KDE 5.109.0 / Plasma 5.27.7
 ████████  ████████  ████████     WM: KWin
 ████████  ████████  ████████     GTK Theme: Breeze [GTK2/3]
 ████████  ████████  ████████     Icon Theme: breeze
 ████████  ████████  ████████     Disk: 595G / 783G (78%)
 ████████  ████████  ████████     CPU: AMD Ryzen 5 3600 6-Core @ 12x 3.6GHz
 ████████  ████████  ████████     GPU: AMD Radeon Graphics (navi22, LLVM 16.0.6, DRM 3.54, 6.5.1-1-MANJARO)
                                  RAM: 4824MiB / 15914MiB

Recently I decided to use OBS, however I am getting a black screen and no selection shows up when trying to add sources (pipewire). Besides this I am also recently unable to stream any XWayland application on Discord (discord-electron).

Digging for days now, I found out that xdg-desktop-portal-kde throws this error when I try to use obs and discord streaming:

$ systemctl --user status plasma-xdg-desktop-portal-kde
● plasma-xdg-desktop-portal-kde.service - Xdg Desktop Portal For KDE
     Loaded: loaded (/usr/lib/systemd/user/plasma-xdg-desktop-portal-kde.service; static)
     Active: active (running) since Tue 2023-09-12 12:02:12 CEST; 6h ago
   Main PID: 854 (xdg-desktop-por)
      Tasks: 8 (limit: 19035)
     Memory: 26.0M
        CPU: 1.737s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/plasma-xdg-desktop-portal-kde.service
             └─854 /usr/lib/xdg-desktop-portal-kde

Sep 12 12:02:12 blueeyedcrow systemd[638]: Starting Xdg Desktop Portal For KDE...
Sep 12 12:02:12 blueeyedcrow systemd[638]: Started Xdg Desktop Portal For KDE.
Sep 12 18:17:49 blueeyedcrow xdg-desktop-portal-kde[854]: xdp-kde-screencast: zkde_screencast_unstable_v1 does not seem to be available
Sep 12 18:17:49 blueeyedcrow xdg-desktop-portal-kde[854]: xdp-kde-screencast: zkde_screencast_unstable_v1 does not seem to be available

  • If you guys can give me any clue, any tip, anything at this point, I would really appreciate it. And If you guys need any additional info, please let me know.

  • Also if you know why this is happening, I wouldn’t mind an in-depth explanation, I am not a developer but I want to know more about Linux in general.

Here is some additional package info:

$ pacman -Q | grep -E "pipewire|xdg-desktop|mesa"                                                                                                                                                                            

gst-plugin-pipewire 1:0.3.79-2
kpipewire 5.27.7-1
lib32-libva-mesa-driver 23.1.6-2
lib32-mesa 23.1.6-2
lib32-mesa-demos 9.0.0-1
lib32-mesa-vdpau 23.1.6-2
libpipewire 1:0.3.79-2
libva-mesa-driver 23.1.6-3
manjaro-pipewire 20221015-2
mesa 23.1.6-3
mesa-demos 9.0.0-2
mesa-utils 9.0.0-2
mesa-vdpau 23.1.6-3
pipewire 1:0.3.79-2
pipewire-alsa 1:0.3.79-2
pipewire-audio 1:0.3.79-2
pipewire-jack 1:0.3.79-2
pipewire-pulse 1:0.3.79-2
qemu-audio-pipewire 8.1.0-2
xdg-desktop-portal 1.16.0-3
xdg-desktop-portal-kde 5.27.7-1

$ obs --version
OBS Studio - 29.1.3-1

And lastly one more thing I cought in console output when lounching obs-studio:

info: Loaded scenes:
info: - scene 'Scene':
info:     - source: 'Screen' (pipewire-desktop-capture-source)
info:     - source: 'Window Capture (PipeWire)' (pipewire-window-capture-source)
info:     - source: 'Window Capture (PipeWire) 2' (pipewire-window-capture-source)
info: ------------------------------------------------
warning: [pipewire] Failed to create session, denied or cancelled by user
warning: [pipewire] Failed to create session, denied or cancelled by user
warning: [pipewire] Failed to create session, denied or cancelled by user

It could be related.

Again, any help is much, much appreciated.

This issue was resolved.

It turns out that I have disabled the screencast plugin in ~/.config/kwinrc
I figured this out by creating a new user and testing obs and discord. As both were working fine, someone on a different forum suggested to look into my user config.

Here is the diff output:

diff -y -b -B /home/blueeyedcrow/.config/kwinrc /home/test/.config/kwinrc --color
[$Version]                                                      [$Version]
update_info=kwin.upd:replace-scalein-with-scale,kwin.upd:port   update_info=kwin.upd:replace-scalein-with-scale,kwin.upd:port

[Compositing]                                                 <
LatencyPolicy=High                                            <
                                                              <
[Desktops]                                                      [Desktops]
Id_1=2f0c3c91-72c1-435b-8ab5-fa2fe2878e8a                     | Id_1=5d900dc0-bd4d-44ab-9a17-0124d82123eb
Id_2=7e4d6456-b5c5-4814-9943-ac80a05e4988                     | Id_2=636f3b7f-5ef6-47b9-975a-b225e2db921d
Rows=2                                                          Rows=2

[Plugins]                                                     <
kwin4_effect_maximizeEnabled=false                            <
kwin5_plugin_screencastEnabled=false                          <
                                                              <
[Tiling]                                                        [Tiling]
padding=4                                                       padding=4

[Tiling][015e7436-f4fd-5877-98dd-2d49f4cd9822]                <
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25} <
                                                              <
[Tiling][061fd18c-f302-5138-95a3-b270ac3f43a9]                  [Tiling][061fd18c-f302-5138-95a3-b270ac3f43a9]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25}   tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25}

[Tiling][1173f3d8-7be1-561e-98ef-c41d109220fc]                <
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25} <
                                                              <
[Tiling][183d0b27-6ff1-5f7c-a67d-b48826ef4fc0]                <
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25} <
                                                              <
[Tiling][20cce1a6-a81a-5fcf-afec-8b3ca417cb30]                <
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25} <
                                                              <
[Tiling][5780c2cb-e57f-57d9-9013-e758f650953e]                <
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25} <
                                                              <
[Tiling][58eee382-ced8-5000-90d3-5398b0db3f24]                  [Tiling][58eee382-ced8-5000-90d3-5398b0db3f24]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25}   tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25}
                                                              <
[Tiling][5935157a-1005-5c02-b35b-8b94b86e3bd6]                <
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25} <
                                                              <
[Tiling][74a53254-c5b5-5c2e-b444-25c927d5d10c]                <
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25} <
                                                              <
[Tiling][92e842d7-5928-5c43-884a-4912e7cc82ed]                <
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25} <
                                                              <
[Tiling][a67cfcdf-13f5-5133-a25b-2169d2426d5a]                <
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25} <
                                                              <
[Tiling][d4c6aa55-aeee-5163-a1f2-9ad81e4f7b0b]                <
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25} <
                                                              <
[Tiling][fe4b79ab-fcfd-545a-a05f-d32302fccd2f]                <
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25} <
                                                              <
[Windows]                                                     <
SnapOnlyWhenOverlapping=true                                  <

[Xwayland]                                                      [Xwayland]
Scale=1                                                         Scale=1