-
-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chatterino reverts back to default settings after system restart #3262
Comments
So only the current settings.json gets reset and everything else stays the same? What about the commands and the .bkp backup settings files? |
I have a little suspicion that winblows kills Chatterino while saving settings, so it leaves an invalid file behind and therefore can load the settings after restarting. I don't remember this thing happening on any other OS than Windows. |
I'm assuming the commands are reset as well as it wasn't saved for me and I'm not sure about the backup files as I haven't compared the differences of it yet, I apologize I'm quite new to Chatterino |
It's my strong belief that this issue only happens due to the users C: drive being a HDD, and it's a very old Windows issue. We discussed this in the Runelite discord back in July, as a afaik the changes made here: runelite/runelite@compare fixed the problem for Runelite, but they are a java app and using fsync so this info probably doesn't help. |
All the saving of settings is done in https://github.com/pajlada/settings. It uses iostreams to save here. These do flush when closed. Maybe they don't flush hard enough. I wonder if it's any different with a |
window-layout.json has the same issue, which uses QSaveFile |
Tabs are saved in window-layout.json. Please clarify. |
window-layout.json is often lost in this scenario as well, but not as common |
Had this or a very similar issue happen today: I have chatterino stored on an SSD though it is not my OS drive. Chatterino Nightly 2.4.6 (commit fbc8aaca) built on 2023-11-19 with Qt 6.5.0, MSVC 193732825 |
On Windows, this will bypass the filesystem cache. As a consequence, writes should be a bit more "atomic", while introducing a bit more work for the actual filesystem. See also Chatterino/chatterino2#3262 and https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-movefileexw#movefile_write_through
This should be fixed since 2d11e79 (just merged in). If you notice it after running Chatterino after that version, please re-open or comment on this issue. pajlada/settings#87 is what actually did the work on improving this, and it looks super promising. |
Describe your issue
It's been a long time since this issue has been going on and sometimes when I restart my computer it reverts back to its default settings
Possible fix
-Copying the Settings folder from the %AppData% of Chatterino
AppData > Roaming > Chatterino2
OS and Chatterino Version
The text was updated successfully, but these errors were encountered: