{"action":"opened","issue":{"url":"https://api.github.com/repos/micro-manager/micro-manager/issues/109","labels_url":"https://api.github.com/repos/micro-manager/micro-manager/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/micro-manager/micro-manager/issues/109/comments","events_url":"https://api.github.com/repos/micro-manager/micro-manager/issues/109/events","html_url":"https://github.com/micro-manager/micro-manager/issues/109","id":118722962,"number":109,"title":"MM2: use atomic writing for UserProfile","user":{"login":"ChrisWeisiger","id":10535260,"avatar_url":"https://avatars.githubusercontent.com/u/10535260?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisWeisiger","html_url":"https://github.com/ChrisWeisiger","followers_url":"https://api.github.com/users/ChrisWeisiger/followers","following_url":"https://api.github.com/users/ChrisWeisiger/following{/other_user}","gists_url":"https://api.github.com/users/ChrisWeisiger/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisWeisiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisWeisiger/subscriptions","organizations_url":"https://api.github.com/users/ChrisWeisiger/orgs","repos_url":"https://api.github.com/users/ChrisWeisiger/repos","events_url":"https://api.github.com/users/ChrisWeisiger/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisWeisiger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/micro-manager/micro-manager/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-24T23:06:14Z","updated_at":"2015-11-24T23:06:14Z","closed_at":null,"body":"Currently we just write the profile to disk at the location where it should ultimately be stored, which means if the writer gets interrupted then we can create a malformed profile, which in turn can cause the program to fail to launch in future. Instead we should write the new profile to a temporary file and then move it to its final location."}}