Skip to content

Commit

Permalink
Re-add missing environment variables (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnyTimeTraveler committed Dec 7, 2022
1 parent 1915376 commit 77eb456
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/login.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,11 @@ void auth(
char vt[5];
snprintf(vt, 5, "vt%d", config.tty);

// set env
// set env (this clears the environment)
env_init(pwd);
// Re-add XDG environment variables from lines 508,509
env_xdg_session(desktop->display_server[desktop->cur]);
env_xdg(tty_id, desktop->list_simple[desktop->cur]);

if (dgn_catch())
{
Expand Down

0 comments on commit 77eb456

Please sign in to comment.