diff --git a/lxdm/src/lxdm.c b/lxdm/src/lxdm.c index ff4d362..4e865db 100644 --- a/lxdm/src/lxdm.c +++ b/lxdm/src/lxdm.c @@ -1042,7 +1042,7 @@ void lxdm_do_login(struct passwd *pw, char *session, char *lang) append_pam_environ(env); pam_end(pamh,0); #endif - switch_user(pw, session_exec, env); + switch_user(pw, session_name, env); lxdm_quit_self(4); } g_free(session_name);