diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-27 10:27:57 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-27 10:27:57 +0400 |
| commit | a54e048f419221be9f26310363267d63a8758abb (patch) | |
| tree | a439e04e56d344f687959c41327902bf77fa627c /resources | |
| parent | d268cfcf9f2d86a58456f3f3b946a763d1cc6140 (diff) | |
| download | niri-a54e048f419221be9f26310363267d63a8758abb.tar.gz niri-a54e048f419221be9f26310363267d63a8758abb.tar.bz2 niri-a54e048f419221be9f26310363267d63a8758abb.zip | |
niri-session: Unset environment variables
Without this, logging out and then back in doesn't work because
WAYLAND_DISPLAY is left for some reason.
Diffstat (limited to 'resources')
| -rwxr-xr-x | resources/niri-session | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/resources/niri-session b/resources/niri-session index 77332e32..b825c3db 100755 --- a/resources/niri-session +++ b/resources/niri-session @@ -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 |
