]> git.mdlowis.com Git - proto/labwc.git/commitdiff
server: do not set WAYLAND_DISPLAY twice
authorJohan Malm <jgm323@gmail.com>
Tue, 4 Oct 2022 20:58:58 +0000 (21:58 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 14 Oct 2022 22:19:18 +0000 (00:19 +0200)
src/server.c

index 008d3297c2daf3ea4638a0fbc94d1cf22db919d7..db54286580b4460565b10da4fb5b4b3c1807d800 100644 (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 {