niri-session: Unset environment variables

Without this, logging out and then back in doesn't work because
WAYLAND_DISPLAY is left for some reason.
This commit is contained in:
Ivan Molodetskikh
2023-08-27 10:27:57 +04:00
parent d268cfcf9f
commit a54e048f41
+4 -1
View File
@@ -27,4 +27,7 @@ if hash dbus-update-activation-environment 2>/dev/null; then
fi
# Start niri and wait for it to terminate.
exec systemctl --user --wait start niri.service
systemctl --user --wait start niri.service
# Unset environment that we've set.
systemctl --user unset-environment WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP