that may be handy
I'm happy you received my proposal positively
I just spent some more time to compare fresh installs of MP and Classic and the way they scan some folders if configuration file(s) already exist (if not, the program offers a selection of 2-3 options). This analysis leads to a more detailed proposal as below :
- The current default option is right, no need to change : Config per user, stored in %APPDATA%\... ($XDG_CONFIG_HOME/... or $home\.config... for Linux)
- The second option, config shared all users targets the %Program Files% folder. I agree that in some situations this should remain (see next). But, in most cases XnView is deployed via a standard setup.exe (or .deb on Linux) and the target folder is protected, cannot store the config files.
What I suggest is rather than just warn the user, the location should be transparently directed to %ProgramData% ($XDG_STATE_HOME for Linux?). This folder is made for purpose, with r/w access by all users of the machine.
- For portable distribution (and ZIP)?) a .ini file should be included. Doing so the program do not ask and will use the file provided in the program folder (with r/w access, no pb on USB key). Once the .ini file is found the information on Settings > Integration > Paths should reflect the actual location where is the .ini file in use (one of the 2 options above). Doing so prevents use/alterations of existing configuration files on the host machine and unexpected behavior when a USB key is/has been inserted.
Bellow is a screenshot of the current behavior of the option "Program (XnView)" when it was installed via normal setup. The warning doesn't mean anything for an average user, may lead to unsecured change on the system and do not deliver the expected feature of sharing a consistent layout, shortcuts, toolbars, labels,... across all users of the machine. My proposal solves this.
Location of Settings (Win) Option Program - Warning.jpg
You do not have the required permissions to view the files attached to this post.