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
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