add: check return value of launch_editor