Saving options/preferences to file on harddrive

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, helmut, xnview

User avatar
loth
Posts: 173
Joined: Thu Aug 11, 2005 3:21 pm
Location: Kölle

Saving options/preferences to file on harddrive

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

Post 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.
User avatar
loth
Posts: 173
Joined: Thu Aug 11, 2005 3:21 pm
Location: Kölle

Post 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?
loth
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post 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.
User avatar
ckv
Posts: 786
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow

Post 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.
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.
User avatar
loth
Posts: 173
Joined: Thu Aug 11, 2005 3:21 pm
Location: Kölle

Re: Saving options/preferences to file on harddrive

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