From 955251c5f2b9027e223b084c9fac4e678f3867c8 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 10 Mar 2021 13:20:52 +0000 Subject: [PATCH] Only share X11 display with the app if Wayland is unavailable This improves the isolation between the app's sandbox and the host system when running in a Wayland-capable environment, such as GNOME Shell in its default Wayland mode or KDE Plasma Desktop in its non-default Wayland mode (both tested on Debian 11). The UI shell uses Qt, which was given Wayland support in the previous commit. The actual streaming client uses SDL, which defaults to X11 but will use Wayland if no X11 display is available. To test: Xephyr :2 & DISPLAY=:2 flatpak run com.valvesoftware.SteamLink//master You should see that the Steam Link app (both the shell and the actual streaming client) continues to run full-screen rather than being confined to the Xephyr display, indicating that both parts are using Wayland rather than X11. Signed-off-by: Simon McVittie --- com.valvesoftware.SteamLink.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.valvesoftware.SteamLink.yml b/com.valvesoftware.SteamLink.yml index 5367127..8f5c6b6 100644 --- a/com.valvesoftware.SteamLink.yml +++ b/com.valvesoftware.SteamLink.yml @@ -10,9 +10,9 @@ finish_args: - --env=SDL_GAMECONTROLLERCONFIG_FILE=/var/data/Valve Corporation/SteamLink/controller_map.txt - --share=ipc - --share=network + - --socket=fallback-x11 - --socket=pulseaudio - --socket=wayland - - --socket=x11 tags: - proprietary