REQ: INI file in XnView folder - for USB stick
Moderators: XnTriq, helmut, xnview
-
- Posts: 419
- Joined: Thu May 12, 2005 8:59 pm
- Location: Germany
REQ: INI file in XnView folder - for USB stick
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.
ZIPping the whole folder and taking it to an other PC would be possible too.
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.
ZIPping the whole folder and taking it to an other PC would be possible too.
Everyone who believes in telekinesis, raise my hand!
-
- Posts: 8705
- Joined: Sun Oct 12, 2003 6:47 pm
- Location: Frankfurt, Germany
Re: [REQ:] INI file in xnView folder - for USB stick
Makes sense. I thought that XnView had a specific order when searching for its settings, already.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.
ZIPping the whole folder and taking it to an other PC would be possible too.
1. XnView program folder
2. Windows folder
Think I was wrong.
-
- XnThusiast
- Posts: 4608
- Joined: Sun Jul 25, 2004 9:08 pm
-
- Author of XnView
- Posts: 44761
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: [REQ:] INI file in xnView folder - for USB stick
No, XnView search .ini in XnView program folder, and windows folder.helmut wrote:Makes sense. I thought that XnView had a specific order when searching for its settings, already.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.
ZIPping the whole folder and taking it to an other PC would be possible too.
1. XnView program folder
2. Windows folder
Think I was wrong.
Pierre.
-
- Author of XnView
- Posts: 44761
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 419
- Joined: Thu May 12, 2005 8:59 pm
- Location: Germany
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.
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.
Everyone who believes in telekinesis, raise my hand!
-
- XnThusiast
- Posts: 4608
- Joined: Sun Jul 25, 2004 9:08 pm
I agree, it is confusing now.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.
-
- Author of XnView
- Posts: 44761
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
It's not so easy. XnView check in many location for xnview.ini.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.
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.
-
- Posts: 419
- Joined: Thu May 12, 2005 8:59 pm
- Location: Germany
OK, no problem, make it exactly like you described: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.
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!
-
- Posts: 8705
- Joined: Sun Oct 12, 2003 6:47 pm
- Location: Frankfurt, Germany
Search order
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.
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.
-
- XnThusiast
- Posts: 4608
- Joined: Sun Jul 25, 2004 9:08 pm
Re: Search order
I agree.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.
BTW How can I save settings to Document & Settings... ? There is no such option in xnview, I still think it's confusing.