Run shell script on window close via --watcher #3311
-
kitty is started with The shell script just starts the program running in the same tab and location as it was before it was closed for whatever reason: I don't know python and tried to make a watcher python wrapper to call this script when the process dies, as the docs appear to suggest to me... but killing the program (which closes that particular window in the tab), does not trigger the shell script, what am I missing?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
First you dont need a shell script, just call boss.new_window('bash', '-c', 'foo') secondly, before doing that make sure the watcher is properly working by writing to a log file in on_close() like this open('/tmp/test', 'w').write('working') |
Beta Was this translation helpful? Give feedback.
First you dont need a shell script, just call
boss.new_window('bash', '-c', 'foo')
secondly, before doing that make sure the watcher is properly working by writing to a log file in on_close() like this
open('/tmp/test', 'w').write('working')