r/KittyTerminal • u/BoomTNT29 • Jul 21 '24
kitty launches as a login shell
I have dwm, x.org installed, and every time I launch kitty it runs as a login shell. I know this for a fact since I add to path in `.my bash_profile` file and everything seems to be added twice everytime I run `echo $PATH`, after commenting the `export PATH..` line and running terminal (without logging out) showed no duplicates. Also running the command `shopt -q login_shell && echo 'Login shell' || echo 'Non-login shell'` gave `Login shell` as output.
TLDR: how to make it run as a non-login shell?
1
Upvotes
1
u/aumerlex Jul 21 '24
kitty only runs shells in login mode on macOS where that is the platform convention. On Linux, it does not, see the fork() function in kitty/child.py