Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/session-child.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ session_child_run (int argc, char **argv)
g_clear_object (&x_authority);
x_authority = read_xauth ();
}
/* The session can run on a different VT than the greeter used during authentication */
if (!xdisplay && tty)
pam_set_item (pam_handle, PAM_TTY, tty);
gsize env_length;
read_data (&env_length, sizeof (env_length));
for (int i = 0; i < env_length; i++)
Expand Down
2 changes: 1 addition & 1 deletion src/wayland-session.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ wayland_session_connect_session (DisplayServer *display_server, Session *session
session_set_env (session, "XDG_VTNR", value);

g_autofree gchar *tty_text = NULL;
tty_text = g_strdup_printf("/dev/tty/%d",priv->vt);
tty_text = g_strdup_printf("/dev/tty%d",priv->vt);
session_set_tty(session,tty_text);
}
}
Expand Down
Loading