Skip to content

nixos/Plasma6 Screenshare Portal is not avalible on KDE for wayland (and other applications) #407809

Description

@SpiderUnderUrBed

Nixpkgs version

  • Unstable (25.05)

Describe the bug

Screenshare does not work for discord, whether it be on any browser, or client apps. This is because KDE given to me by nixos or wayland shipped lacks the interface/portal for screenshare (I found dbus screencast/share missing and interfaces missing), I imagine this would affect other applications as well. Although I have not tested it

https://discourse.nixos.org/t/how-to-fix-debug-discord-screenshare-issues-on-kde/63784/29
^ I discussed it on the forum, as well as tried to debug the issue, more on that for the logs (I recommend reading the thread)

Steps to reproduce

This is my best guess on how to reproduce the issue without trying my config:

  1. Make a new nixos system, with plasma 6 on unstable, (i am on 6.3.5, and I updated recently), more precisely close to 25.05.20250510.d89fc19, or look at the metadata section
  2. Open the KDE wayland session
  3. try discord screenshare on any platform.
    If you cannot recreate it, maybe try my configuration, in a vm or on host, through I think it will be more effective if you simply look through it (its a tiny bit messy):
    https://github.com/SpiderUnderUrBed/nixos-files

Expected behaviour

Discord screenshare should work on kde plasma 6, (6.3), on wayland, and should allow me to share my screen or window

Screenshots

I have a video but I dont think it will provide any additional useful information (taken from phone)

Relevant log output

https://pastebin.com/Sf0gz6Y2
^ Starting xdg desktop portal manually (/nix/store/4mxb4j4ma1h88c5afhvny0jl48zfmkg6-xdg-desktop-portal-kde-6.3.5/libexec/xdg-desktop-portal-kd)
You see indications of the missing interface here:
`kde.plasma.wayland.client: Unknown interface announced:  zkde_screencast_unstable_v1 / 68 / 5`
https://pastebin.com/7jdw0Pjf
 ^ with librewolf when i try screenshare
Same result. No extra logs
^ with brave
Same log with vesktop
^ with vesktop
Same logs as everything else (this screen shares, but only a black screen)
^ Vencord and discord (kinda different from native, but not enough I dont think it has any unique issue)

If you do want the brave and librewolf logs:
https://pastebin.com/QfPyR3ze
^ brave
https://pastebin.com/byf6zB59
^ librewolf

Additional context

https://discourse.nixos.org/t/how-to-fix-debug-discord-screenshare-issues-on-kde/63784/29
^ as mentioned previously, I talked about this issue with lots of information in the forums

Also, as I mentioned earlier, this does not work on OBS, I found out as I tried to record discord failing with screen share

Plasma manager exists in my home-manager configuration, but i do not use it

I think this is a bug, as nothing in my system should conflict with kdes ability to share my screen

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.14.6-cachyos, NixOS, 25.05 (Warbler), 25.05.20250510.d89fc19
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.28.3
  • nixpkgs: /nix/store/ccfwxygjrarahgfv5865x2f828sjr5h0-source

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions