Options, History and Favourites for different windows users

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, xnview

User avatar
Dreamer
XnThusiast
Posts: 4605
Joined: Sun Jul 25, 2004 9:08 pm
Location: Slovakia

Options, History and Favourites for different windows users

Post by Dreamer » Mon Jan 17, 2005 5:09 pm

It's all a little bit confusing for me...

- Options are saved in "XnView\xnview.ini" (for all users)
- History ?? (I don't use it)
- Favourites in "C:\Documents and Settings\<user>\Application Data\XnView\bookmark.ini"

...this could cause some speed problems of xnview maybe, if xnview load both ini files at start (especially if xnview is installed on different drive, e.g. D: ) and I still don't know where is "History" so there are even 3 ini files maybe...

So I've got a suggestion: Save all options, history and favourites for each windows user to one ini file - "C:\Documents and Settings\<user>\Application Data\XnView\xnview.ini"

User avatar
helmut
Posts: 8174
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Options, History and Favourites for different windows us

Post by helmut » Mon Jan 17, 2005 11:01 pm

Dreamer wrote:It's all a little bit confusing for me...
Pierre and I are preparing a FAQ entry for this. It's not very difficult...
Dreamer wrote:So I've got a suggestion: Save all options, history and favourites for each windows user to one ini file - "C:\Documents and Settings\<user>\Application Data\XnView\xnview.ini"
Thanks for the suggestions. But be sure that Pierre is a fit programmer, so you do not have to agonise over implementation details.

User avatar
xnview
Author of XnView
Posts: 31938
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Options, History and Favourites for different windows us

Post by xnview » Tue Jan 18, 2005 12:08 pm

Dreamer wrote:It's all a little bit confusing for me...

- Options are saved in "XnView\xnview.ini" (for all users)
- History ?? (I don't use it)
- Favourites in "C:\Documents and Settings\<user>\Application Data\XnView\bookmark.ini"

...this could cause some speed problems of xnview maybe, if xnview load both ini files at start (especially if xnview is installed on different drive, e.g. D: ) and I still don't know where is "History" so there are even 3 ini files maybe...

So I've got a suggestion: Save all options, history and favourites for each windows user to one ini file - "C:\Documents and Settings\<user>\Application Data\XnView\xnview.ini"
Yes, i think that it's better to save all .ini in Application Data. History is in xnview.ini.
Any suggestions?
Pierre.

User avatar
Dreamer
XnThusiast
Posts: 4605
Joined: Sun Jul 25, 2004 9:08 pm
Location: Slovakia

Re: Options, History and Favourites for different windows us

Post by Dreamer » Tue Jan 18, 2005 4:25 pm

xnview wrote:Yes, i think that it's better to save all .ini in Application Data. History is in xnview.ini.
Any suggestions?
Why not save all options, history and favourites (for each windows user) to a single ini file / combine bookmark.ini and xnview.ini?

If you share your computer with another user(s), that user(s) can change size and position of the main xnview window, then you must change it back... finally it could even cause conflicts between users :x :wink:

...so I think a single ini file for each windows user would be very useful.

Also creating of backup from a single ini file would be easier than from two files in two different locations.

User avatar
xnview
Author of XnView
Posts: 31938
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Options, History and Favourites for different windows us

Post by xnview » Tue Jan 18, 2005 7:46 pm

Dreamer wrote:
xnview wrote:Yes, i think that it's better to save all .ini in Application Data. History is in xnview.ini.
Any suggestions?
Why not save all options, history and favourites (for each windows user) to a single ini file / combine bookmark.ini and xnview.ini?

If you share your computer with another user(s), that user(s) can change size and position of the main xnview window, then you must change it back... finally it could even cause conflicts between users :x :wink:

...so I think a single ini file for each windows user would be very useful.

Also creating of backup from a single ini file would be easier than from two files in two different locations.
No, for users that use registry, you have no xnview.ini
Pierre.

User avatar
Dreamer
XnThusiast
Posts: 4605
Joined: Sun Jul 25, 2004 9:08 pm
Location: Slovakia

Re: Options, History and Favourites for different windows us

Post by Dreamer » Tue Jan 18, 2005 10:19 pm

xnview wrote:No, for users that use registry, you have no xnview.ini
Registry is another problem, which options/favourites/history is independent for each user now?

What other users (mainly those who share their computer with other user(s) ) think about that - "save all options, history and favourites for each windows user to a single ini file" ?

User avatar
helmut
Posts: 8174
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Options, History and Favourites for different windows us

Post by helmut » Tue Jan 18, 2005 10:23 pm

Dreamer wrote:
xnview wrote:No, for users that use registry, you have no xnview.ini
Registry is another problem, which options/favourites/history is independent for each user now?

What other users (mainly those who share their computer with other user(s) ) think about that - "save all options, history and favourites for each windows user to a single ini file" ?
Dreamer, please wait for an appropriate FAQ entry (see above). Then the discussion can base on facts, not on assumptions and guessing.

User avatar
Dreamer
XnThusiast
Posts: 4605
Joined: Sun Jul 25, 2004 9:08 pm
Location: Slovakia

Re: Options, History and Favourites for different windows us

Post by Dreamer » Tue Jan 18, 2005 10:49 pm

helmut wrote:Dreamer, please wait for an appropriate FAQ entry (see above). Then the discussion can base on facts, not on assumptions and guessing.
OK, I misunderstood your post above... but Pierre already wrote "History is in xnview.ini" and I know that options are in xnview.ini too and favourites are different for each windows user in bookmark.ini ... so my suggestion is easy - save all options for each user like favourites in bookmark.ini.

User avatar
helmut
Posts: 8174
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Options, History and Favourites for different windows us

Post by helmut » Tue Jan 18, 2005 10:59 pm

Dreamer wrote:
helmut wrote:Dreamer, please wait for an appropriate FAQ entry (see above). Then the discussion can base on facts, not on assumptions and guessing.
OK, I misunderstood your post above... but Pierre already wrote "History is in xnview.ini" and I know that options are in xnview.ini too and favourites are different for each windows user in bookmark.ini ... so my suggestion is easy - save all options for each user like favourites in bookmark.ini.
Once the FAQ is available, even other users might follow this discussion and give input. So just wait.

User avatar
helmut
Posts: 8174
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut » Mon Jan 24, 2005 8:31 pm

I've just posted the FAQ 'Technical info about XnView's settings (store & load)'. This should clarify most questions on .ini files.

User avatar
Dreamer
XnThusiast
Posts: 4605
Joined: Sun Jul 25, 2004 9:08 pm
Location: Slovakia

Post by Dreamer » Tue Jan 25, 2005 5:56 pm

helmut wrote:I've just posted the FAQ 'Technical info about XnView's settings (store & load)'. This should clarify most questions on .ini files.
My suggestions are still the same:
Dreamer wrote:Save all options, history and favourites for each windows user to one ini file - "C:\Documents and Settings\<user>\Application Data\XnView\xnview.ini"
And combine xnview.ini with bookmark.ini and save it to a single file under "C:\Documents and Settings\<user>\Application Data\XnView\xnview.ini"

Another reason for that - if user 1 has options saved in registry and user 2 in ini, then user 1 could clear/overwrite options of user 2 - if he unmark "Use registry to save options"

Also another suggestion (somewhere else) - Export options to *.reg file - would be useful. Or at least one of these suggestions...

User avatar
helmut
Posts: 8174
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut » Tue Jan 25, 2005 6:26 pm

Dreamer wrote:My suggestions are still the same:
Dreamer wrote:Save all options, history and favourites for each windows user to one ini file - "C:\Documents and Settings\<user>\Application Data\XnView\xnview.ini"
And combine xnview.ini with bookmark.ini and save it to a single file under "C:\Documents and Settings\<user>\Application Data\XnView\xnview.ini"
Right. I think for saving .ini files the directories:
- on Windows 9x: \Windows
- on Win2K or higher: \Documents and Settings\<username>\Application Data\XnView
should be used (see also topic 'Location of wallpaper file'). As you have pointed out, already, this will prevent users from overwriting their configurations/settings.

When backing up a configuration, you have to backup two files. One file might be better in some respects, but it does not make much difference. There's even reasons for splitting the bookmarks from the rest.
So I think putting all settings in one .ini file has no or very low priority.

If there was a performance issue, Pierre should naturally adress it, but I don't think that 1 or 2 ini files make a big difference. But this is Pierre's business.
Dremer wrote:Another reason for that - if user 1 has options saved in registry and user 2 in ini, then user 1 could clear/overwrite options of user 2 - if he unmark "Use registry to save options"
Right, see above.
Dremer wrote:Also another suggestion (somewhere else) - Export options to *.reg file - would be useful. Or at least one of these suggestions...
This has been discussed in another thread and I still think that this has little priority.

User avatar
xnview
Author of XnView
Posts: 31938
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview » Tue Jan 25, 2005 7:12 pm

Dreamer wrote:
Dreamer wrote:Save all options, history and favourites for each windows user to one ini file - "C:\Documents and Settings\<user>\Application Data\XnView\xnview.ini"
And combine xnview.ini with bookmark.ini and save it to a single file under "C:\Documents and Settings\<user>\Application Data\XnView\xnview.ini"
Sorry but i can't. bookmark.ini is not loaded by windows API, not the same format.
Pierre.

User avatar
Dreamer
XnThusiast
Posts: 4605
Joined: Sun Jul 25, 2004 9:08 pm
Location: Slovakia

Post by Dreamer » Tue Jan 25, 2005 9:49 pm

xnview wrote:
Dreamer wrote: And combine xnview.ini with bookmark.ini and save it to a single file under "C:\Documents and Settings\<user>\Application Data\XnView\xnview.ini"
Sorry but i can't. bookmark.ini is not loaded by windows API, not the same format.
I just thought it could speed up the startup, but I agree with Helmut, that it's not so important, especially if both files will be placed in the same folder, users can backup whole folder xnview. But this could be also the problem, if there will be also a wallpaper - users might backup just files and if they've got a lot of ini files, bookmark.ini could get lost, so I suggest at least (if possible) to rename bookmark.ini to e.g. xnview bookmark.ini or xnviewbookmark.ini...

And what about that (see above for more):
Dreamer wrote:Save all options, history and favourites for each windows user to one ini file - "C:\Documents and Settings\<user>\Application Data\XnView\xnview.ini"

User avatar
xnview
Author of XnView
Posts: 31938
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview » Wed Jan 26, 2005 6:46 am

Dreamer wrote:
xnview wrote:
Dreamer wrote: And combine xnview.ini with bookmark.ini and save it to a single file under "C:\Documents and Settings\<user>\Application Data\XnView\xnview.ini"
Sorry but i can't. bookmark.ini is not loaded by windows API, not the same format.
I just thought it could speed up the startup, but I agree with Helmut, that it's not so important, especially if both files will be placed in the same folder, users can backup whole folder xnview. But this could be also the problem, if there will be also a wallpaper - users might backup just files and if they've got a lot of ini files, bookmark.ini could get lost, so I suggest at least (if possible) to rename bookmark.ini to e.g. xnview bookmark.ini or xnviewbookmark.ini...
Why to rename it, you are in the XnView folder ;-)
So by default, now XnView must use Documents and Settings\<user>\Application Data\XnView\ to save xnview.ini instead of XnView folder?
Pierre.

Post Reply