Significant work towards a working bzr_launch_hook.