Page 1 of 1

xnview.ini updates on restart even when nothing has changed

Posted: Thu May 29, 2025 3:59 pm
by rotbus19
1. copy contents of xnview.ini
2. open XnView then close it again without any interaction
3. copy contents of xnview.ini
4. compare the before / after and it shows the `[Format]` section is being updated, rearranging the order of file types:
Screenshot 2025-05-29 165326.png
Screenshot 2025-05-29 165326.png (98.63 KiB) Viewed 221 times
This repeats each time XnView is restarted.

I also notice that xnview.ini is being *created* every time rather than *modified* - could be a performance issue here?

EDIT - `autocorrect.txt` is also being modified just by opening Settings, changing nothing, then closing it with `OK` - an unnecessary write?

Re: xnview.ini updates on restart even when nothing has changed

Posted: Thu May 29, 2025 4:22 pm
by user0
yeah, it would be handy to have formats list A-Z sorted
as its used in Custom filter (Settings > Filelist) in the same order

Re: xnview.ini updates on restart even when nothing has changed

Posted: Mon Jun 02, 2025 7:40 am
by xnview
rotbus19 wrote: Thu May 29, 2025 3:59 pm I also notice that xnview.ini is being *created* every time rather than *modified* - could be a performance issue here?
Qt API recreates always the .ini

Re: xnview.ini updates on restart even when nothing has changed

Posted: Mon Jun 02, 2025 7:38 pm
by rotbus19
OK, I guess there's not much difference in resource overhead for create vs update. So the bigger issue is the unnecessary update / write when the user has changed nothing in settings.

Re: xnview.ini updates on restart even when nothing has changed

Posted: Thu Jun 05, 2025 6:58 am
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: xnview.ini updates on restart even when nothing has changed

Posted: Tue Jun 10, 2025 2:52 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.9.2. Please check and confirm the bug fix here.

Re: xnview.ini updates on restart even when nothing has changed

Posted: Wed Jun 11, 2025 8:51 am
by rotbus19
Not completely fixed. The format file list is no longer being reordered unnecessarily, but xnview.ini is still being created even though nothing has changed.

Open XnView then close it without changing anything. A new version of xnview.ini is created even though it is identical to the previous version.