Page 1 of 2

REQ: INI file in XnView folder - for USB stick

Posted: Mon May 16, 2005 5:00 pm
by Lesmo16
It's fine that xnView gives an option to write INI-files and leave the Registry clean.
But I would like an option to write the INI-file into xnView folder instead of Windows folder.
With the INI in the application folder, you can easily carry it on an USB stick. :wink:

ZIPping the whole folder and taking it to an other PC would be possible too.

Re: [REQ:] INI file in xnView folder - for USB stick

Posted: Mon May 16, 2005 5:36 pm
by helmut
Lesmo16 wrote:It's fine that xnView gives an option to write INI-files and leave the Registry clean.
But I would like an option to write the INI-file into xnView folder instead of Windows folder.
With the INI in the application folder, you can easily carry it on an USB stick. :wink:

ZIPping the whole folder and taking it to an other PC would be possible too.
Makes sense. I thought that XnView had a specific order when searching for its settings, already.

1. XnView program folder
2. Windows folder

Think I was wrong.

Posted: Mon May 16, 2005 6:33 pm
by Dreamer
This option is a little bit confusing...

If you want to write the INI-file into xnView folder, just unmark "Use registry to save options"

Maybe you need also unmark "Use win folder to save INI file"

Posted: Mon May 16, 2005 6:43 pm
by Guest
I don't find it very confusing. By default, "use registry" and "use win folder" are unckecked, and then the .ini is stored in the xnview folder.

Posted: Mon May 16, 2005 6:50 pm
by Guest
I don't find it very confusing. By default, "use registry" and "use win folder" are unckecked, and then the .ini is stored in the xnview folder.
... and when both are checked? :mrgreen:

Posted: Mon May 16, 2005 6:50 pm
by OL
maybe "Use Windows folder to save INI file" should be replaced with something like "Use Windows folder to save INI file (otherwise use XnView folder)"
(sorry for the double post)

Posted: Mon May 16, 2005 6:52 pm
by OL
Anonymous wrote:
I don't find it very confusing. By default, "use registry" and "use win folder" are unckecked, and then the .ini is stored in the xnview folder.
... and when both are checked? :mrgreen:
Well I have not tested this :D I'm guessing that settings would be written in both the INI and the registry..

Re: [REQ:] INI file in xnView folder - for USB stick

Posted: Mon May 16, 2005 7:24 pm
by xnview
helmut wrote:
Lesmo16 wrote:It's fine that xnView gives an option to write INI-files and leave the Registry clean.
But I would like an option to write the INI-file into xnView folder instead of Windows folder.
With the INI in the application folder, you can easily carry it on an USB stick. :wink:

ZIPping the whole folder and taking it to an other PC would be possible too.
Makes sense. I thought that XnView had a specific order when searching for its settings, already.

1. XnView program folder
2. Windows folder

Think I was wrong.
No, XnView search .ini in XnView program folder, and windows folder.

Posted: Mon May 16, 2005 7:25 pm
by xnview
Dreamer wrote:This option is a little bit confusing...

If you want to write the INI-file into xnView folder, just unmark "Use registry to save options"

Maybe you need also unmark "Use win folder to save INI file"
But by default these optinos are not checked....

Posted: Mon May 16, 2005 8:03 pm
by Lesmo16
It's a problem to decide between the 3 options only with 2 CheckBoxes.

Both unchecked: you can only guess where the configuration data is stored
Both checked: nonsense IMHO

What about 3 OptionButtons or a DropdownList containing the items AppFolder, WinFolder and Registry?
So only one option would be possible. :wink:

Posted: Mon May 16, 2005 8:10 pm
by Dreamer
Lesmo16 wrote:It's a problem to decide between the 3 options only with 2 CheckBoxes.

Both unchecked: you can only guess where the configuration data is stored
Both checked: nonsense IMHO

What about 3 OptionButtons or a DropdownList containing the items AppFolder, WinFolder and Registry?
So only one option would be possible. :wink:
I agree, it is confusing now.

Posted: Tue May 17, 2005 1:55 pm
by xnview
Lesmo16 wrote:It's a problem to decide between the 3 options only with 2 CheckBoxes.

Both unchecked: you can only guess where the configuration data is stored
Both checked: nonsense IMHO

What about 3 OptionButtons or a DropdownList containing the items AppFolder, WinFolder and Registry?
So only one option would be possible. :wink:
It's not so easy. XnView check in many location for xnview.ini.
First if -ini is used, in windows directory, in app directory, in APP Settings directory.
Following the option, xnview save option in registry or in .ini, and the .ini is in windows directory if setting is checked.

Posted: Tue May 17, 2005 2:26 pm
by Lesmo16
xnview wrote:First if -ini is used, in windows directory, in app directory, in APP Settings directory.
Following the option, xnview save option in registry or in .ini, and the .ini is in windows directory if setting is checked.
OK, no problem, make it exactly like you described:

2 pairs of OptionButtons are needed

1st pair is "INI-File" or "Registry" (default = INI-File)
2nd pair is "AppFolder" or "WinFolder" (default = AppFolder)

If Registry is chosen from 1st pair, the 2nd pair must be greyed.

So only one option would be possible.

Search order

Posted: Tue May 17, 2005 7:49 pm
by helmut
Think there's some misunderstanding:

XnView has a default search order for settings, no matter which settings you make:


1.) First XnView checks if .ini file is used or not (Registry "HKEY_CURRENT_USER\Software\XnView\UseRegistry")
2a.) If .ini is used, it checks
2a-1.) Windows directory
2a-2.) Program directory
2a-3.) Document & Settings

2b.) If registry is used, it will read the settings from Registry, only (HKEY_CURRENT_USER\Software\XnView\...)

The question is, whether there's a need to make this automated search order fix and settable. I think the answer is "No".

Instead, I suggest another search order. Currently, XnView searches from general (Windows) to detailed (Document & Settings). The search should acutally be the other way round, from specific to general:

1.) Program directory (where xnview.exe that is just started resides)
2.) Document & Settings
3.) Windows directory

This would allow for having specific settings on an USB stick and also support settings per user.

Re: Search order

Posted: Tue May 17, 2005 8:50 pm
by Dreamer
helmut wrote:Instead, I suggest another search order. Currently, XnView searches from general (Windows) to detailed (Document & Settings). The search should acutally be the other way round, from specific to general:

1.) Program directory (where xnview.exe that is just started resides)
2.) Document & Settings
3.) Windows directory

This would allow for having specific settings on an USB stick and also support settings per user.
I agree.

BTW How can I save settings to Document & Settings... ? There is no such option in xnview, I still think it's confusing.