Closed YorkZ closed 2 years ago
Read the docs of the listen_on config option, in particular what it says about the PID being appended. https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.listen_on
Thank you for the ultra fast responding. But I don't really understand what the doc means regarding the {kitty_pid}
thing. I think the doc is not clear enough on this, and therefore would you mind explaining it a bit more?
You can run multiple kitty processes, all loading the same configuration file.
However, different processes cannot listen to the same socket, so different sockets are needed.
If you don't explicitly specify {kitty_pid}
, then the process pid will be automatically appended to the end to listen to different sockets.
I believe the documentation is clear on this.
Sorry but I'm still very confused. So since
allow_remote_control yes
listen_on unix:@mykitty
in the config file doesn't work, what should be changed in order for it to work? I don't understand how to apply {kitty_pid}
thing, so I just guessed:
listen_on unix:@mykitty{kitty_pid}
but that still didn't make any difference. Please forgive me if I did stupid thing about this.
... what should be changed in order for it to work?
Fix your kitty @ --to
argument. The socket you try to connect to via kitty @
does not match what kitty actually listens to.
kitty -o allow_remote_control=y -o listen_on=unix:@mykitty
printenv KITTY_LISTEN_ON
# unix:@mykitty-12345
kitty @ --to "unix:@mykitty-$KITTY_PID" ls
Describe the bug The
listen_on
option in config file doesn't seem to have an effect while specifying--listen-on
on the command line works.To Reproduce Steps to reproduce the behavior:
~/.config/kitty
kitty
withkitty
terminal window, type:Environment details
Additional context Try to reproduce the problem with
kitty --config NONE
if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.