Thread: Running script on firefox exit
hi. trying figure out if knows way, either through firefox, or gnu/linux, make script run whenever firefox closed.
you want wrapper:
where firefox_finished name of script want run. call script myfirefox. make sure both executable , both in $path (preferably in $home/bin).code:firefox wait $(pgrep firefox) exec firefox_finished
caveats: firefox forks. how affects program don't know. pgrep return pid every instance of program firefox part of name. have instance of wrapper every invocation of wrapper. result in multiple copies of firefox_finished being run. consider starting point.
andrew
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] Running script on firefox exit
Ubuntu
Comments
Post a Comment