openscopeproject / TrguiNG

Remote GUI for Transmission torrent daemon
GNU Affero General Public License v3.0
382 stars 47 forks source link

~/Library/Application\ Support/trguing.json doesn’t get written to until app close #71

Closed nicknlsn closed 1 year ago

nicknlsn commented 1 year ago

It appears that ~/Library/Application\ Support/trguing.json doesn't get written until app exit. I added five new servers and looked at the file and they weren't in there, then closed the app and looked at the file again and they were there. Seems like it could cause data loss if the app doesn't close cleanly, and would explain why TML lost some settings when his machine rebooted for an update.

qu1ck commented 1 year ago

This is by design. Settings should not be written every time something changes because a lot of events on the front end side can trigger very frequent updates. It will boggle down the file system with a lot of unnecessary writes.

App not closing cleanly is the actual issue that should be dealt with when that happens.