From ef398f6e8860a984d7ea77f2aa71961ed9adb21a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 13 Jan 2023 22:45:35 +0300 Subject: Move cleanup from .profile to session script Move cleanup after exiting sway to swaysession script. Should find a better way to handle "runaway" programs after logout from sway. --- dotfiles/.profile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'dotfiles/.profile') diff --git a/dotfiles/.profile b/dotfiles/.profile index 00fed07..f3ff763 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -44,12 +44,6 @@ eval "$(dircolors "$HOME/.config/dir_colors")" # Start sway automatically upon login on tty1 or tty2 if [ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ] || [ $(tty) = /dev/tty2 ]; then - dbus-run-session sway - if [ $? = 0 ] && [ ! -e ~/.cache/dont-kill ]; then - killall -u $(whoami) - clear - exit - fi - mv ~/.cache/sway.log ~/.cache/sway-crash-$(date +"%Y-%m-%dT%H:%M").log + exec dbus-run-session sway 2> ~/.cache/sway.log fi -- cgit v1.2.3