Page 1 of 1

Custom folder for config file

Posted: Sun Mar 19, 2017 10:53 am
by Dreamer
Hello Pierre,

I'm testing the new version, I'd like to place all setting files in the same (custom) folder, but it looks it's impossible.

In the start-up dialog, the option "Custom" for the .ini file is unavailable, it's available only for other settings.

In the Settings window > Integration > Paths > "Use .ini file in folder" the option "Custom" is available, but it doesn't work.

To reproduce:

- Settings > Integration > Paths > "Use .ini file in folder" select the option "Program (XnView)"
- restart the program
- Settings > Integration > Paths > "Use .ini file in folder" select the option "Custom"
= [...] browse button is missing
= xnview.ini file is created in the User path (Roaming folder)
- restart the program
= ini file from Program path is used
= the "Custom" option is changed back to "Program (XnView)".

MP 0.85 beta 1 64-bit, Windows 10 Home 64-bit.

Re: 0.85b1: Custom Settings folder issue

Posted: Sun Mar 19, 2017 1:01 pm
by helmut
Hey, very good to see that you're around again, Dreamer! :) Greetings to Slovakia!

Re: 0.85b1: Custom Settings folder issue

Posted: Tue Mar 21, 2017 1:28 pm
by xnview
'Custom' for ini setting is only used when using -ini, you can't change in the UI. perhaps i need to hide it in this case

Re: 0.85b1: Custom Settings folder issue

Posted: Wed Mar 22, 2017 9:56 pm
by helmut
@Dreamer:
- Could you please check whether this problem was introduced in 0.85 beta 1? If this problem occurs in 0.84, too, the topic title should be changed appropriately.
- There's a template for bug reports, see http://newsgroup.xnview.com/viewtopic.php?t=27835
xnview wrote:'Custom' for ini setting is only used when using -ini, you can't change in the UI. perhaps i need to hide it in this case
Could you please explain in some more detail? (ATM, I don't understand).

Re: 0.85b1: Custom Settings folder issue

Posted: Wed Mar 22, 2017 10:31 pm
by Dreamer
It looks it's not a bug. Pierre's post was not clear for me too, but I think the option "Custom" is used only when using the command line option -ini (I'm not sure how it works), in this case the option "Custom" is selected in the MP GUI.

Perhaps it could be moved to Suggestions forum. I don't understand, why the custom path for xnview.ini is missing, if it's available for 3 other options below.

Re: 0.85b1: Custom Settings folder issue

Posted: Wed Mar 22, 2017 10:38 pm
by helmut
Dreamer wrote:It looks it's not a bug. Pierre's post was not clear for me too, but I think the option "Custom" is used only when using the command line option -ini (I'm not sure how it works), in this case the option "Custom" is selected in the MP GUI.
Thank you for your explanation. It's a good idea to indicate that -ini was used but it's a bad way to do this using "Custom".
Dreamer wrote:Perhaps it could be moved to Suggestions forum. I don't understand, why the custom path for xnview.ini is missing, if it's available for 3 other options below.
Right - apart from "Program" and "User" there should also be "Custom".

Next question will be why there are buttons to open path of config files and catalog but no buttons for "Other files" and "Thumbnails database". That's inconsistent.

:arrow: Suggestions

Re: Custom folder for config file

Posted: Fri Mar 24, 2017 8:28 am
by m.Th.
Perhaps it could be moved to Suggestions forum. I don't understand, why the custom path for xnview.ini is missing, if it's available for 3 other options below.
Chicken & egg problem

If the path for the .ini file is „custom” then this path must be stored somewhere - either in Registry (which means that it isn't a cross-platform solution, contradicts with the GUI and partially denies the need for the INI file) either in another INI file.

Re: Custom folder for config file

Posted: Fri Mar 24, 2017 9:24 am
by helmut
m.Th. wrote:.. If the path for the .ini file is „custom” then this path must be stored somewhere - either in Registry (which means that it isn't a cross-platform solution, contradicts with the GUI and partially denies the need for the INI file) either in another INI file.
Right. "Custom" isn't possible for xnview.ini and must be removed in the dialog. Please note that Pierre used this "Custom" for indicating that the user has started XnView with parameters -ini <path of config file>. As written above this type of indication is no good and should be changed.