server: do not set WAYLAND_DISPLAY twice

This commit is contained in:
Johan Malm 2022-10-04 21:58:58 +01:00 committed by Consolatis
parent 22aa31cb7f
commit ee00a897a4

View file

@ -460,7 +460,6 @@ server_start(struct server *server)
exit(EXIT_FAILURE);
}
setenv("WAYLAND_DISPLAY", socket, true);
if (setenv("WAYLAND_DISPLAY", socket, true) < 0) {
wlr_log_errno(WLR_ERROR, "unable to set WAYLAND_DISPLAY");
} else {