Skip to content

Commit

Permalink
Only share X11 display with the app if Wayland is unavailable
Browse files Browse the repository at this point in the history
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 (tested on Debian 11) or
KDE Plasma Desktop in its non-default Wayland mode (not tested).

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 <smcv@collabora.com>
  • Loading branch information
smcv committed Apr 12, 2021
1 parent 66b1b36 commit 4583541
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions com.valvesoftware.SteamLink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ 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
Expand Down

0 comments on commit 4583541

Please sign in to comment.