Skip to content

Flatpak does not work on KDE Wayland #3953

@cameronbosch

Description

@cameronbosch

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

Unable to test because of using the Flatpak version

Describe the Bug

Similar to see in #3668 which was closed without being solved AFAIK, Sunshine fails to detect an existing running PulseAudio instance.

As a result nothing works and I get a non-functional Sunshine.

This is a KDE Plasma 6.3 Wayland session within SDDM. Pulseaudio & PipeWire are launched by KDE.

This pops up instead when I run sudo -i PULSE_SERVER=unix:/run/user/$(id -u $whoami)/pulse/native flatpak run dev.lizardbyte.app.Sunshine

bwrap: Can't find source path /run/user/1000/pulse/native: Permission denied

Expected Behavior

The application should run correctly and not error out.

Additional Context

Running the app without this prevents KMS from working.

Host Operating System

Linux

Operating System Version

CachyOS (Arch Linux) using the Flatpak from Flathub

Architecture

amd64/x86_64

Sunshine commit or version

v2025.122.141614

Package

Linux - flathub/flatpak

GPU Type

NVIDIA

GPU Model

Nvidia RTX 4090

GPU Driver/Mesa Version

Nvidia-Open 575.57.08-2

Capture Method

None (because I cannot get KMS working at all).

Config

Apps

Relevant log output

Error: Couldn't get handle for DRM Framebuffer [145]: Probably not permitted
[2025-06-08 12:36:31.859]: Fatal: You must run [sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))] for KMS display capture to work!
If you installed from AppImage or Flatpak, please refer to the official documentation:
https://docs.lizardbyte.dev/projects/sunshine/latest/md_docs_2getting__started.html#linux

BTW, this is weird that this was reported over 5 months ago and was never fixed nor the developers ever checking on it apart from a bot closing the issue as stale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions