~kennylevinsen/greetd

247c399f48d8dca6f234c41c3dd7ac7a50fe82d7 — Kenny Levinsen a month ago 0d9f461
Reintroduce XDG_VTNR

Some X11 start scripts rely on this variable to apss the current VT to
Xorg.
1 files changed, 1 insertions(+), 4 deletions(-)

M greetd/src/session/worker.rs
M greetd/src/session/worker.rs => greetd/src/session/worker.rs +1 -4
@@ 222,10 222,7 @@ fn worker(sock: &UnixDatagram) -> Result<(), Error> {
    pam.open_session(PamFlag::NONE)?;

    // We are done with PAM, clear variables that the child will not need.
    let cleared_env = ["XDG_SESSION_CLASS", "XDG_VTNR"];
    for e in cleared_env.iter() {
        _ = pam.putenv(e);
    }
    _ = pam.putenv(&"XDG_SESSION_CLASS");

    // Prepare some strings in C format that we'll need.
    let cusername = CString::new(user.name)?;