mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 09:51:29 +00:00
Set WAYLAND_DISPLAY earlier in startup
This commit is contained in:
parent
9d7f47746c
commit
d6acb3d86c
|
@ -102,12 +102,11 @@ void server_fini(struct sway_server *server) {
|
|||
void server_run(struct sway_server *server) {
|
||||
wlr_log(L_INFO, "Running compositor on wayland display '%s'",
|
||||
server->socket);
|
||||
setenv("_WAYLAND_DISPLAY", server->socket, true);
|
||||
setenv("WAYLAND_DISPLAY", server->socket, true);
|
||||
if (!wlr_backend_start(server->backend)) {
|
||||
wlr_log(L_ERROR, "Failed to start backend");
|
||||
wlr_backend_destroy(server->backend);
|
||||
return;
|
||||
}
|
||||
setenv("WAYLAND_DISPLAY", server->socket, true);
|
||||
wl_display_run(server->wl_display);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue