pub fn write_profiles( path: &Path, profiles: &[BrowserProfile], ) -> Result<(), String>
Replace the list, through a temp file and a rename, so a crash never leaves a half-written file.