Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only share X11 display with the app if Wayland is unavailable #16

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

smcv
Copy link
Collaborator

@smcv smcv commented Apr 12, 2021

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.


Based on #15. We should probably get a beta release out with #15 merged before landing this, but this is where I'd like to get to eventually.

@lhindir, as with #15, when the flathub bot has built a test package for this, it would be great if you could try it in your Wayland environment and let us know how well it works.

@flathubbot
Copy link
Contributor

Started test build 44787

@smcv smcv mentioned this pull request Apr 12, 2021
@flathubbot
Copy link
Contributor

Build 44787 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/43088/com.valvesoftware.SteamLink.flatpakref

@smcv smcv force-pushed the wip/no-x11-if-wayland branch from 4583541 to a81e37c Compare May 10, 2021 14:06
@flathubbot
Copy link
Contributor

Started test build 47520

@flathubbot
Copy link
Contributor

Build 47520 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/45699/com.valvesoftware.SteamLink.flatpakref

@smcv smcv force-pushed the wip/no-x11-if-wayland branch from a81e37c to d3e99fa Compare May 10, 2021 14:53
@flathubbot
Copy link
Contributor

Started test build 47526

@flathubbot
Copy link
Contributor

Build 47526 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/45705/com.valvesoftware.SteamLink.flatpakref

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 <smcv@collabora.com>
@smcv smcv force-pushed the wip/no-x11-if-wayland branch from d3e99fa to 955251c Compare September 8, 2021 17:46
@flathubbot
Copy link
Contributor

Started test build 59138

@flathubbot
Copy link
Contributor

Build 59138 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/57012/com.valvesoftware.SteamLink.flatpakref

@smcv smcv changed the base branch from wip/wayland to beta October 14, 2021 14:05
@smcv
Copy link
Collaborator Author

smcv commented Oct 14, 2021

Now that GNOME Software is producing increasingly scary warnings for X11 apps (see screenshot), I think it's worth pushing ahead with this.

x11-considered-harmful

@smcv smcv marked this pull request as ready for review October 14, 2021 14:17
@smcv smcv merged commit c694aee into beta Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants