Set GAMESCOPE_WAYLAND_DISPLAY

This allows gamescope-specific Wayland clients to connect to the
Wayland server, while preventing regular Wayland clients from doing
so.
This commit is contained in:
Simon Ser 2021-02-18 14:59:50 +01:00
parent a05e5b0a39
commit be735e9360

View file

@ -587,6 +587,8 @@ int wlserver_init(int argc, char **argv, bool bIsNested) {
wlr_log(WLR_INFO, "Running compositor on wayland display '%s'", wayland_display_name); wlr_log(WLR_INFO, "Running compositor on wayland display '%s'", wayland_display_name);
setenv("GAMESCOPE_WAYLAND_DISPLAY", wayland_display_name, 1);
if (!wlr_backend_start( wlserver.wlr.multi_backend )) if (!wlr_backend_start( wlserver.wlr.multi_backend ))
{ {
wlr_log(WLR_ERROR, "Failed to start backend"); wlr_log(WLR_ERROR, "Failed to start backend");