From 58b1fdb7dd822d24fe23b322e14a08a4056fe19e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 26 Jun 2021 09:36:23 +0200 Subject: xmonad: remove old session MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- xmonad/xinit | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmonad') diff --git a/xmonad/xinit b/xmonad/xinit index 13f8392..bbb15f1 100644 --- a/xmonad/xinit +++ b/xmonad/xinit @@ -21,4 +21,9 @@ if test "${SESSION}" = xmonad; then # Start application panel mate-panel & + # Remove old session + if test -f ~/.xmonad/xmonad.state; then + rm -f -- ~/.xmonad/xmonad.state + fi + fi -- cgit v1.2.3-70-g09d2