goto disp_err;
}
+ runtime_dir = getenv("XDG_RUNTIME_DIR");
#ifdef HAVE_SYSTEMD_DAEMON
INF("Checking for open sockets...");
n = sd_listen_fds(1);
ERR("Could not create Wayland display socket: %m");
goto sock_err;
}
-
- runtime_dir = getenv("XDG_RUNTIME_DIR");
- if (runtime_dir &&
- e_config->wayland_socket_owner &&
- e_config->wayland_socket_group) {
+ else if (runtime_dir &&
+ e_config->wayland_socket_owner &&
+ e_config->wayland_socket_group) {
struct group *g;
struct passwd *u;
uid_t uid;
chmod(socket_path, e_config->wayland_socket_permissions);
chown(socket_path, uid, gid);
}
-#endif
INF("Ready to serve my purpose");
/* set wayland display environment variable */