xnview.ini updates on restart even when nothing has changed

*** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
rotbus19
Posts: 81
Joined: Sat Feb 17, 2024 11:47 am

xnview.ini updates on restart even when nothing has changed

Post 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 225 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?
Last edited by rotbus19 on Thu May 29, 2025 5:06 pm, edited 1 time in total.
User avatar
user0
XnThusiast
Posts: 2410
Joined: Sat May 09, 2015 9:37 am

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

Post 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
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post 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
Pierre.
rotbus19
Posts: 81
Joined: Sat Feb 17, 2024 11:47 am

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

Post 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.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.9.2. Please check and confirm the bug fix here.
Pierre.
rotbus19
Posts: 81
Joined: Sat Feb 17, 2024 11:47 am

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

Post 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.
Post Reply