int32_t idle_time = 300;
int32_t xserver = 0;
int32_t help = 0;
- char *socket_name = NULL;
+ char *socket_name = "wayland-0";
char *config_file;
const struct config_key shell_config_keys[] = {
ec->option_idle_time = idle_time;
ec->idle_time = idle_time;
+ setenv("WAYLAND_DISPLAY", socket_name, 1);
+
module_init = NULL;
if (xserver)
module_init = load_module("xwayland.so", "module_init");
goto out;
}
- if (socket_name)
- setenv("WAYLAND_DISPLAY", socket_name, 1);
-
if (!shell)
shell = "desktop-shell.so";
module_init = load_module(shell, "module_init");