From 6f8047bc7afdd388fb954ad73b9f634d9f9f412e Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sun, 23 Oct 2016 15:04:40 +1100 Subject: [PATCH] Slightly more reliable XDG_RUNTIME_DIR cleanup, still a little worrying --- config/zsh/logout/xdg-clear | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/zsh/logout/xdg-clear b/config/zsh/logout/xdg-clear index 414c96e..b44205b 100644 --- a/config/zsh/logout/xdg-clear +++ b/config/zsh/logout/xdg-clear @@ -1,2 +1,2 @@ #! zsh -(( $(w -h $LOGNAME | wc -l) == 1 )) && rm -rf $XDG_RUNTIME_DIR +(( $SHLVL == 1 && $(w -h $LOGNAME | wc -l) == 1 )) && rm -rf $XDG_RUNTIME_DIR