adobe/brackets-shell — pull request #366 by ingorichter (2013-10-31 23:45:47+00:00)
Title: Write the contents of the file with fwrite instead of g_file_set_contents

Since g_file_set_contents removes the file and re-creates it, all permissions get lost during this operation. Using fwrite preserves all the permissions.