-
Notifications
You must be signed in to change notification settings - Fork 170
Description
Describe the bug
My safeeyes.json config file often resets. I am not sure why but I suspect it's due to my computer shutting down while the file is open for writing and its format gets corrupted. Safeeyes on my computer saves the config file very frequently. Mine is 99 kB so quite large. I have a lot of short_breaks and the problem seems to surface more frequently with a large config.
I removed most short_breaks from the uploaded file for privacy reasons but left a few to show how it looks.
To Reproduce
Steps to reproduce the behavior:
- Normal usage.
- Shut down Ubuntu. (I guess SIGTERM should be enough?)
Expected behavior
I would like the program to only save the config file when really necessary (only when changed). Even then, making a .bak copy (a rename operation) wouldn't hurt in my opinion.
Desktop (please complete the following information):
- OS: Ubuntu 24.04
- Desktop Env: LXDE
- Version 2.2.2
Configuration
Attach the configuration file, usually found in ~/.config/safeeyes/safeeyes.json.