Skip to content

Run shell script on window close via --watcher #3311

Answered by kovidgoyal
Strykar asked this question in Q&A
Discussion options

You must be logged in to vote

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')

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Strykar
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