Re-add missing environment variables

This commit is contained in:
Simon Struck 2022-09-28 15:46:10 +02:00
parent 2ffb86213b
commit 4418d1d91f
No known key found for this signature in database
GPG Key ID: 8ACD7992831A4148
1 changed files with 4 additions and 1 deletions

View File

@ -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())
{