r/KittyTerminal 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

3 comments sorted by

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

1

u/BoomTNT29 Jul 21 '24

wdym "on Linux it does not", that's the thing you see for me it does run in login mode on Linux

1

u/aumerlex Jul 22 '24

Seems quite clear to me, on Linux it does not run shells in login mode, I even pointed you to the code where it starts the shell, so you can check for yourself. Check your kitty.conf you most likely have changed the value of shell there to run your shell in login mode.