jpegview
jpegview copied to clipboard
all settings reset after update!
extracted new version to old versions place and now all my settings got reset to default... cuz archive had JPEGView.ini and KeyMap.txt 😢
That's how the author had it by default... I'm not sure what it could be changed to... JPEGView is in some weird state if you run without the INI...
I think the best approach would be to have a multi-layered configuration read... but I'm not sure how that would interact with the existing KeyMap and stuff....
basically read the default JPEGView.ini. ... template maybe... and then read anything that overwrites that as a user setting...
@Owyn I'm currently working on an installer as requested here https://github.com/sylikc/jpegview/discussions/32#discussioncomment-2083241 ... That will solve the problem with the INI but I'm still not sure it'll solve the KeyMap problem
I'm not sure what it could be changed to
Not having settings files in the installer archive, then when the program is launched - create those from a template if not present, else insert new (missing) settings if created in the latest update
I think many (if not most?) programs do that, https://github.com/Nandaka/PixivUtil2/ for example
The original Readme states that there can be two settings .ini files:
- User INI file at
C:\Users\Username\AppData\roaming\JPEGView\JPEGView.ini(path name depends on Windows version) - copy your customized file there if it doesn't exist. - Global INI file
[Path of JPEGView.exe]\JPEGView.ini
So if you want to customize the settings, you should do it in the %appdata%\JPEGView\ file.
However this doesn't apply to the Keymap.txt file... But maybe it could be done in the same fashion?
So there is also a command line parameter /ini which allows you to specify an INI file to use.
I'm going to see if I can get the KEYMAP.TXT to work the same way. the JPEGView.ini and JPEGView.ini.tpl have gotten out of sync, so I'm reviewing that as well.
I'll try getting the keymap.txt to cascade through user settings. It will be the focus of the next feature update.