You are not logged in.

#1 2022-11-15 10:56:23

asklow
Member
Registered: 2022-11-07
Posts: 68

[SOLVED] .bash_logout does not execute after sway exit

As for i3/x11, I always do

startx && exit

in my

.bash_profile

so that

.bash_logout

is executed too.
On sway, I couldn't find a way to achieve it. I've tried

exec sway && exit

, but .bash_logout doesn't execute.
Exiting the session is the same command on both,

i3-msg exit

and

swaymsg exit

Last edited by asklow (2022-11-15 11:04:05)

Offline

#2 2022-11-15 10:59:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,300

Re: [SOLVED] .bash_logout does not execute after sway exit

And why did you add the exec to the sway invocation? "Exec" is precisely what causes the issue, it's a command to replace your entire shell with the command you are about to execute. If you need .bash_logout ran, simply do not "exec" any commands. Which is the same trail of logic already discussed in your previous thread: https://bbs.archlinux.org/viewtopic.php … 8#p2066568

Last edited by V1del (2022-11-15 11:02:15)

Offline

#3 2022-11-15 11:03:27

asklow
Member
Registered: 2022-11-07
Posts: 68

Re: [SOLVED] .bash_logout does not execute after sway exit

Alas, didn't knew this btw. Tqvm for this information. It's fixed now ; D
My bad. Forgot to learn from my past experiences !

Last edited by asklow (2022-11-15 11:07:05)

Offline

Board footer

Powered by FluxBB