sesman: exit after fork if reconnectwm.sh does not exist

master
Jay Sorg 13 years ago
parent a246fd582d
commit d8b8ca93b0

@ -643,11 +643,12 @@ session_reconnect_fork(int display, char* username)
else if (pid == 0)
{
env_set_user(username, 0, display);
g_sprintf(text, "%s/%s", XRDP_CFG_PATH, "reconnectwm.sh");
g_snprintf(text, 255, "%s/%s", XRDP_CFG_PATH, "reconnectwm.sh");
if (g_file_exist(text))
{
g_execlp3(text, g_cfg->default_wm, 0);
}
g_exit(0);
}
return display;
}

Loading…
Cancel
Save