kitty:daemon: Use TMPDIR and support multi-user

This commit is contained in:
2025-08-26 13:10:26 +02:00
parent c09ed22389
commit a7e4c2c770
2 changed files with 7 additions and 2 deletions

View File

@@ -13,9 +13,12 @@
#
# NOTE: `--start-as hidden` needs kitty 0.42.0 or later.
TMP_DIR="${TMPDIR:-/tmp}/kitty.$USER"
mkdir -p "$TMP_DIR"
kitty \
--single-instance \
--start-as hidden \
--detach \
-o allow_remote_control=socket-only \
--listen-on unix:/tmp/mykitty
--listen-on unix:"$TMP_DIR/kitty.sock"