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.
Made changes according to review comments. Added a check if the FILE* is valid to prevent errors (there was a failing unit test).
Mac implementation of stat.realPath.
Fix win and linux compile errors. Real path still isn't implemented on these platforms...
Merge remote-tracking branch 'origin/master' into glenn/real-path
Windows implementation of realPath
Merge branch 'glenn/real-path' of https://github.com/adobe/brackets-shell into glenn/real-path
Code cleanup
Fix Live Development issues with Chrome OSX

This reverts commit 2f543d2b7b8cdfebd66aac843b147881bd8c2597, reversing
changes made to c8e714d2961d9a045f74fc55605f49c0b66637fc.
Also fixes issue with invalid SBApplication object causing Brackets to
hang on close.
Merge remote-tracking branch 'origin/master' into glenn/real-path
Add comments to gtk impl.
Fix stat of '/'.
Simplify open/close LiveBrowser methods
Merge pull request #382 from fungl164/osx-live

Fix Live Development issues with Chrome OSX (round 2)
change copy:www to use minified source
Merge branch 'master' into glenn/real-path
update regex to properly replace sprint #
Merge pull request #386 from adobe/bchin/fixed-set-sprint-task

Fix regex in grunt set-sprint task
Set sprint 35.
Merge pull request #387 from adobe/rlim/set-sprint-35

Set sprint 35.