Skip to content

safeeyes.json config file is often lost / resets #840

@adventuretc

Description

@adventuretc

safeeyes copy.json

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:

  1. Normal usage.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions