REQ: INI file in XnView folder - for USB stick

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, helmut, xnview

User avatar
Lesmo16
Posts: 419
Joined: Thu May 12, 2005 8:59 pm
Location: Germany

REQ: INI file in XnView folder - for USB stick

Post 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.
Everyone who believes in telekinesis, raise my hand!
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

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

Post 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.
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post 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"
Guest

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

Post 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:
OL

Post 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)
OL

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

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

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

Post 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....
Pierre.
User avatar
Lesmo16
Posts: 419
Joined: Thu May 12, 2005 8:59 pm
Location: Germany

Post 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:
Everyone who believes in telekinesis, raise my hand!
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

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

Post 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.
Pierre.
User avatar
Lesmo16
Posts: 419
Joined: Thu May 12, 2005 8:59 pm
Location: Germany

Post 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.
Everyone who believes in telekinesis, raise my hand!
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Search order

Post 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.
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Re: Search order

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