aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-08-27 10:27:57 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-08-27 10:27:57 +0400
commita54e048f419221be9f26310363267d63a8758abb (patch)
treea439e04e56d344f687959c41327902bf77fa627c /resources
parentd268cfcf9f2d86a58456f3f3b946a763d1cc6140 (diff)
downloadniri-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-xresources/niri-session5
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