floating / frame

System-wide Web3 for macOS, Windows and Linux
https://frame.sh
GNU General Public License v3.0
1.09k stars 150 forks source link

config.json corruption when out of disk space #1556

Open michaelni opened 1 year ago

michaelni commented 1 year ago

The $HOME/.config/frame*/config.json file seems to be overwritten with a new one and if diskspace runs out in the middle the file is left truncated. At least that seems to have happened (i did run out of diskspace and found a truncated config.json) It would be more robust to write into a new file and then replace/rename that over the old. That way a out of diskspace situation would not affect the existing configuration