pub fn open_editor(path: &Path) -> Result