Command line parameters for testing

Ideas for improvements and requests for new features in XnView Classic

Moderators: helmut, XnTriq, xnview

Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Command line parameters for testing

Post by Dreamer »

There is such a command line parameter:

Ini <file> Launch with specified ini file

I suggest another one:

NewIni <file> Create new ini file

No path might use xnview install folder (the same as xnview.exe).

For example:

NewIni <xnviewtest.ini> (always create new xnviewtest.ini file at start)
Ini <xnviewtest.ini> (use existing xnviewtest.ini file at start)

It would be useful if we need to use default settings, change another setting and restart xnview.

Another suggestions:

noplugins - don't load plugins at start
notip - don't show top of the day at startup
eng - always use English language at startup
nocache - don't use cache

All these suggestions would be very useful when testing xnview. We have to do too many steps when testing a bug now:

- enter xnview folder
- rename ini
- close tip of the day
- switch language
- ...then enter the application data\xnview folder
- delete ini and other files which have been created here (if we use another path for these files)
- rename back the ini in xnview folder

It would be possible by just two desktop icons (or by keyboard shortcuts), with these command line parameters.

Of course, no parameters means load the main xnview.ini file.
Dreamer
User avatar
jis
Posts: 46
Joined: Thu Aug 23, 2007 9:37 pm

Post by jis »

Clever and useful suggestions, I vote for it.
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

Any more replies? It would be very useful for testing. Currently many options are changed when xnview.ini file is renamed/deleted - and some files are created in "User" XnView folder, so it's very hard to test the bugs with default settings. :(
Dreamer
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Post by JohnFredC »

Support+
John
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Re: Command line parameters for testing

Post by Dreamer »

Please add this option also to XnView MP, it's very annoying to test bugs with default settings now, even if I open ini file in notepad, remove the content, save, the other files are still created in Roaming folder, I have to change all these options again and again....). :(

In MP version more parameters are needed (or different).

I need at least options to:

TestNew

- To start xnview with default settings - all files (ini, db, keys, bar, other files...) should be saved in xnview subfolder "test". When using this parameter, xnview will be started with default settings, shortcuts, empty db... all changes will be saved to "xnview\test" subfolder.

TestOld

- To start xnview with the settings (ini, db, keys, bar, other files...) saved in "xnview\test" subfolder.

When using these parameters, never save or use the settings in Roaming (user) folder.
Dreamer
User avatar
helmut
Moderator
Posts: 8576
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Command line parameters for testing

Post by helmut »

These options are useful for testing, but think of all the people which do not test. Adding special test options is o.k., listing them as official command line parameter should be avoided.

Also, I vote for non-abbreviated commands, e.g. "english" instead of just "eng".
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Re: Command line parameters for testing

Post by Dreamer »

OK, but all users should know these parameters, or at least all users reporting a bug, so they could be listed in the "Bug Reporting and Troubleshooting Guidelines" topic - but these options are very important now, also for MP version.
Dreamer