entrance: use sh with /etc/X11/xinit/xinitrc, thx to Marcel Hollerbach
This commit is contained in:
parent
33e36e5696
commit
0519de4d9a
|
@ -184,6 +184,7 @@ _entrance_session_run(struct passwd *pwd, const char *cmd, const char *cookie)
|
||||||
snprintf(buf, sizeof(buf), "%s > %s/.entrance_session.log 2>&1",
|
snprintf(buf, sizeof(buf), "%s > %s/.entrance_session.log 2>&1",
|
||||||
cmd, pwd->pw_dir);
|
cmd, pwd->pw_dir);
|
||||||
#endif
|
#endif
|
||||||
|
PT("Executing: %s --login -c %s \n", pwd->pw_shell, buf);
|
||||||
execle(pwd->pw_shell, pwd->pw_shell, "--login", "-c", buf, NULL, env);
|
execle(pwd->pw_shell, pwd->pw_shell, "--login", "-c", buf, NULL, env);
|
||||||
PT("The Xsessions are not launched :(\n");
|
PT("The Xsessions are not launched :(\n");
|
||||||
}
|
}
|
||||||
|
@ -398,11 +399,11 @@ _entrance_session_find_command(const char *path, const char *session)
|
||||||
{
|
{
|
||||||
if (xsession)
|
if (xsession)
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), "/etc/X11/xinit/xinitrc %s",
|
snprintf(buf, sizeof(buf), "sh /etc/X11/xinit/xinitrc %s",
|
||||||
xsession->command);
|
xsession->command);
|
||||||
return eina_stringshare_add(buf);
|
return eina_stringshare_add(buf);
|
||||||
}
|
}
|
||||||
return eina_stringshare_add("/etc/X11/xinit/xinitrc");
|
return eina_stringshare_add("sh /etc/X11/xinit/xinitrc");
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue