Page 1 of 1

Saving options/preferences to file on harddrive

Posted: Fri Sep 09, 2005 6:19 pm
by loth
hi,

i encountered a small but important problem for me, trying to reproduce some bugs reported in the "bug reports"-forum.

some user have different settings than me and so i try to set my system/xnview up so my system/xnview fits the system/xnview of the bug-reporter.

so far, so good. ;-)

problem is, that after reproducing some bugs, i cannot remember which options i changed %-)

so saving my preferences to a file (i.e. loth.xnprefs) would be very useful.

after clicking and changing everything for bug-checking, i could load my preferences in just a second.

any suggestions / ideas ?

Posted: Fri Sep 09, 2005 8:51 pm
by Dreamer
You can save/backup your settings, just rename xnview.ini file to e.g. xnview.ini.loth and then rename back to xnview.ini.

Posted: Fri Sep 09, 2005 10:56 pm
by loth
Dreamer wrote:You can save/backup your settings, just rename xnview.ini file to e.g. xnview.ini.loth and then rename back to xnview.ini.
good idea! (if i use the .ini storing method, not the registry)

do i have to restart xnview, for the new .ini has to be applied?

Posted: Sat Sep 10, 2005 7:48 am
by helmut
loth wrote:
Dreamer wrote:You can save/backup your settings, just rename xnview.ini file to e.g. xnview.ini.loth and then rename back to xnview.ini.
good idea! (if i use the .ini storing method, not the registry)

do i have to restart xnview, for the new .ini has to be applied?
You have to first exit XnView, then rename your .ini and then restart XnView.

You'll find some background info on .ini files in FAQ "Technical info about XnView's settings (store & load)"

Careful:
If you rename while XnView is running, XnView will not "see" the updated .ini file. And more: When exiting XnView, it will write its current settings to the .ini file and thus would overwrite your .ini file.

Posted: Sat Sep 10, 2005 9:51 am
by ckv
loth wrote:good idea! (if i use the .ini storing method, not the registry)
When using registry you can use something like this:
Start regedit and go to HKEY_CURRENT_USER\Software\XnView and while you are in the XnView key go to File menu, click Export and save registery file wherever you want. This way you can create backup / copy from the XnViews options in the registery. And when you want to restore the old options just click the registery file you created, but notice that this will overwrite the old options.

Note: I am not sure if it is "File / Export", maybe somebody who uses English windows could check this out.

Re: Saving options/preferences to file on harddrive

Posted: Sat Sep 10, 2005 10:51 am
by loth
thanks guys, for the hints, but
i see that it is way too complicated for a normal user to do this.
so saving my preferences to a file (i.e. loth.xnprefs) would be very useful.
i would apreceate something like this.
simple and with no restart, fiddeling with important files, im-/exporting registry-entries ever needed.


but i can do my work, as described in my first post, now, with your help. thanks.

maybe you take this as a suggestion for further versions of xnview.