opt: make env can set for wlroots

This commit is contained in:
DreamMaoMao 2026-06-25 13:18:48 +08:00
parent 09e241121e
commit ed16b1da55

View file

@ -5538,8 +5538,6 @@ cleanup:
void // 17
run(char *startup_cmd) {
set_env();
/* Add a Unix socket to the Wayland display. */
const char *socket = wl_display_add_socket_auto(dpy);
if (!socket)
@ -6137,6 +6135,8 @@ void setup(void) {
}
init_baked_points();
set_env();
int32_t drm_fd, i;
int32_t sig[] = {SIGCHLD, SIGINT,
SIGTERM}; // 不设置SIGPIPE,因为ipc发送失败不应该影响主程序