-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
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?
This issue is present in the latest pre-release
Describe the Bug
XDG grab fails due to a permission error.
Even when using sunshine.service and not sunshine-kms.service it falls back to kmsgrab, and if I manually select XDG as grab method it just fails to start the stream
Expected Behavior
XDG grab should not fail, and sunshine should prefer that to kmsgrab
Additional Context
I'm running KDE plasma 6.6 on Wayland, I'm interested in XDG grab because I have a rotated display and kmsgrab just streams it upside down (which is expected because it "bypasses" the compositor) the mouse position is also wrong, like it's relative to the secondary display instead of the shared display. All things I expect the XDG portal to handle better than kmsgrab.
Sunshine complains about access to the portal being denied, but KDE never prompted me for permission like it does for other screensharing software (e.g. discord, teams), so I never got the possibility to grant access.
Right now, I have the main display connected to my iGPU and the secondary display to the dGPU, this is a workaround to some of the limitation of my dGPU. I don't think this should affect sunshine, but I have included it in case it helps understanding logs.
Host Operating System
Linux
Operating System Version
Fedora KDE edition
Architecture
amd64/x86_64
Package
Linux - Fedora Copr
GPU Type
AMD
GPU Model
RAPHAEL_MENDOCINO (iGPU) and Vega 56 (dGPU), main display connected to iGPU, secondary to dGPU
GPU Driver/Mesa Version
25.2
Capture Method
XDG Portal Grab (Linux)
Apps
Not relevantLog output
[2026-02-20 12:48:58.254]: Info: Sunshine version: 2026.220.22826 commit: 4913b673dcfe8358311503976d08cfdf0afd9f49
[2026-02-20 12:48:58.254]: Info: Package Publisher: LizardByte
[2026-02-20 12:48:58.254]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-02-20 12:48:58.254]: Info: Get support: https://app.lizardbyte.dev/support
[2026-02-20 12:48:58.254]: Info: config: 'address_family' = both
[2026-02-20 12:48:58.254]: Info: config: 'capture' = portal
[2026-02-20 12:48:58.254]: Info: config: 'min_threads' = 4
[2026-02-20 12:56:08.136]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-02-20 12:56:08.136]: Info: Trying encoder [nvenc]
[2026-02-20 12:56:08.136]: Info: Screencasting with XDG portal
[2026-02-20 12:56:08.137]: Info: Found display [wayland-0]
[2026-02-20 12:56:08.144]: Error: Could not create RemoteDesktop session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/16637/root
[2026-02-20 12:56:08.144]: Error: Could not create ScreenCast session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/16637/root
[2026-02-20 12:56:08.344]: Info: Screencasting with XDG portal
[2026-02-20 12:56:08.344]: Info: Found display [wayland-0]
[2026-02-20 12:56:08.346]: Error: Could not create RemoteDesktop session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/16637/root
[2026-02-20 12:56:08.346]: Error: Could not create ScreenCast session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/16637/root
[2026-02-20 12:56:08.546]: Info: Encoder [nvenc] failed
[2026-02-20 12:56:08.547]: Info: Trying encoder [vaapi]
[2026-02-20 12:56:08.547]: Info: Screencasting with XDG portal
[2026-02-20 12:56:08.547]: Info: Found display [wayland-0]
[2026-02-20 12:56:08.548]: Error: Could not create RemoteDesktop session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/16637/root
[2026-02-20 12:56:08.548]: Error: Could not create ScreenCast session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/16637/root
[2026-02-20 12:56:08.749]: Info: Screencasting with XDG portal
[2026-02-20 12:56:08.749]: Info: Found display [wayland-0]
[2026-02-20 12:56:08.750]: Error: Could not create RemoteDesktop session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/16637/root
[2026-02-20 12:56:08.751]: Error: Could not create ScreenCast session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/16637/root
[2026-02-20 12:56:08.951]: Info: Encoder [vaapi] failed
[2026-02-20 12:56:08.951]: Info: Trying encoder [software]
[2026-02-20 12:56:08.951]: Info: Screencasting with XDG portal
[2026-02-20 12:56:08.951]: Info: Found display [wayland-0]
[2026-02-20 12:56:08.953]: Error: Could not create RemoteDesktop session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/16637/root
[2026-02-20 12:56:08.953]: Error: Could not create ScreenCast session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/16637/root
[2026-02-20 12:56:09.153]: Info: Screencasting with XDG portal
[2026-02-20 12:56:09.153]: Info: Found display [wayland-0]
[2026-02-20 12:56:09.154]: Error: Could not create RemoteDesktop session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/16637/root
[2026-02-20 12:56:09.155]: Error: Could not create ScreenCast session: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/16637/root
[2026-02-20 12:56:09.355]: Info: Encoder [software] failed
[2026-02-20 12:56:09.355]: Fatal: Unable to find display or encoder during startup.
[2026-02-20 12:56:09.355]: Fatal: Please check that a display is connected and powered on.Online logs
No response