..by moving the file (think a bit) and test? (cd /home/user/.mypaint && mv settings.json settings.json.bak) Or maybe the error handling is bad and the file doesn't even exist anymore.