mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
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:
@@ -27,4 +27,7 @@ if hash dbus-update-activation-environment 2>/dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Start niri and wait for it to terminate.
|
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user