1.91.4: XnView U3 and INI

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

ckit
XnThusiast
Posts: 2451
Joined: Tue Feb 17, 2004 1:11 am
Location: Cabarlah, Australia

1.91.4: XnView U3 and INI

Post by ckit »

XnView 1.91.4 doesn't use it's own INI when loaded on a Toshiba U3 drive, it uses the local version!

BTW: I manually updated the 1.90.3 U3 version :)
XnViewMP running on Windows 10 Pro x64 21H1
PhotoFiltre 11, PowerArchiver Toolkit, ShareX and Vivaldi Browser
User avatar
xnview
Author of XnView
Posts: 36798
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.91.4: XnView U3 and INI

Post by xnview »

ckit wrote:XnView 1.91.4 doesn't use it's own INI when loaded on a Toshiba U3 drive, it uses the local version!

BTW: I manually updated the 1.90.3 U3 version :)
Really, but do you use a special .ini?
Pierre.
User avatar
foxyshadis
Posts: 387
Joined: Sat Nov 18, 2006 8:57 am

Post by foxyshadis »

XnView always checks the registry first, if that's enabled it'll ignore any ini completely. I haven't tested user ini vs local, maybe that takes precedence as well.
User avatar
xnview
Author of XnView
Posts: 36798
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

foxyshadis wrote:XnView always checks the registry first, if that's enabled it'll ignore any ini completely. I haven't tested user ini vs local, maybe that takes precedence as well.
Oh right, so you must not have a XnView that use registry to use U3 version...
Pierre.
ckit
XnThusiast
Posts: 2451
Joined: Tue Feb 17, 2004 1:11 am
Location: Cabarlah, Australia

Post by ckit »

XnView should use it's own INI stored on the USB drive itself not the same one as on the HDD.

If XnView could be hardcoded like this...
XnView.exe -ini xnview_u3.ini
XnViewMP running on Windows 10 Pro x64 21H1
PhotoFiltre 11, PowerArchiver Toolkit, ShareX and Vivaldi Browser
User avatar
xnview
Author of XnView
Posts: 36798
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

ckit wrote:XnView should use it's own INI stored on the USB drive itself not the same one as on the HDD.

If XnView could be hardcoded like this...
XnView.exe -ini xnview_u3.ini
Ok, the problem is that xnview search settings first in registry, and after in 'Document settings', and after in xnview folder. Perhaps i must search in xnview folder at first step?
Pierre.
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

xnview wrote:Ok, the problem is that xnview search settings first in registry, and after in 'Document settings', and after in xnview folder. Perhaps i must search in xnview folder at first step?
Yes, it would be useful also when testing a bug with default settings, now it's too complicated.
Dreamer
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

In all cases

Post by Clo »

:arrow: Pierre

:) Hello !
…Perhaps I must search in xnview folder at first step?
• Yes, please do it. I think also that's much better, and in all cases (not only when using a USB medium).

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
xnview
Author of XnView
Posts: 36798
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: In all cases

Post by xnview »

Clo wrote:
…Perhaps I must search in xnview folder at first step?
• Yes, please do it. I think also that's much better, and in all cases (not only when using a USB medium).
So it should be like that?
* -ini parameter
* XnView folder
* User folder
* Windows folder
Pierre.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

Avoid hitches

Post by Clo »

:arrow: Pierre

:) Hello !

• Yes, like this.
- It should be convenient for USB devices, and also securer when updating the programme “by hand”
(I'd a hitch once recently, probably because that order of searching…)

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
foxyshadis
Posts: 387
Joined: Sat Nov 18, 2006 8:57 am

Post by foxyshadis »

Remind us when you release it, so I remember to rename my existing .ini files. =p
User avatar
xnview
Author of XnView
Posts: 36798
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

And xnview.ini in same folder than xnview.exe must be checked before xnview registry settings??
Pierre.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France

Indeed

Post by Clo »

—> Pierre

:) Hello !
And xnview.ini in same folder than xnview.exe must be checked before xnview registry settings??
- Indeed !

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

xnview wrote:And xnview.ini in same folder than xnview.exe must be checked before xnview registry settings??
Yes (IMO).
Dreamer
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Post by Drahken »

The default behavior in any program should be to check for/react to an ini file in it's own folder before doing anything else. Checking user/windows folders or the registry should always be secondary.