Commit c80b1661 authored by K900's avatar K900
Browse files

switch-to-configuration-ng: clear environment when reexecing as user

Avoids weird magic dbus variables leaking in and ruining everything.
parent a06868fb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1678,6 +1678,7 @@ won't take effect until you reboot the system.
                std::process::Command::new(&myself)
                    .uid(uid)
                    .gid(gid)
                    .env_clear()
                    .env("XDG_RUNTIME_DIR", runtime_path)
                    .env("__NIXOS_SWITCH_TO_CONFIGURATION_PARENT_EXE", &myself)
                    .spawn()