Skip to content

Using bash builtins and while loops to launch in a tab #4821

Answered by page-down
Strykar asked this question in Q&A
Discussion options

You must be logged in to vote

I tried and it works fine.
Maybe you need systemctl is-active --quiet service-here.

# startup-session.conf
launch --allow-remote-control bash -c "printf waiting; while test ! -f /tmp/flag >/dev/null 2>&1; do printf .; sleep 1; done; kitty @ launch sh -c 'echo ready; exec bash -il'"
kitty --session ./path/to/startup-session.conf
touch /tmp/flag

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Strykar
Comment options

You must be logged in to vote
2 replies
@page-down
Comment options

@Strykar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants