Prevent leaving an orphaned shell process when using niri-session

This commit is contained in:
ArtikusHG
2026-05-05 21:39:32 +03:00
committed by Ivan Molodetskikh
parent 1f07cffa9f
commit 56654034e9
+1 -1
View File
@@ -15,7 +15,7 @@ if [ -n "$SHELL" ] &&
! (echo "$SHELL" | grep -q "false") &&
! (echo "$SHELL" | grep -q "nologin"); then
if [ "$1" != '-l' ]; then
exec bash -c "exec -l '$SHELL' -c '$0 -l $*'"
exec bash -c "exec -l '$SHELL' -c 'exec $0 -l $*'"
else
shift
fi