cyanfish / naps2

Scan documents to PDF and more, as simply as possible.
https://www.naps2.com
Other
2.74k stars 321 forks source link

Look for user-specific appsettings.xml #295

Closed source124 closed 5 months ago

source124 commented 8 months ago

The problem

Changes made in appsettings.xml don't survive app upgrades (portable version).

The solution If I copy appsettings.xml into the Data folder, use that instead of the App folder one.

Describe alternatives you've considered I have to be very careful every time I update the app.

cyanfish commented 8 months ago

What settings do you change in appsettings.xml? For some of them (e.g. ClearAfterSaving, SaveButtonDefaultAction) I've added a Settings window in 7.3.0 that lets you set it on a user level.

Keyboard shortcuts is maybe the main one that still needs to be added (see #61). But there is an undocumented way to make it permanent - you can copy the element into the user-level config.xml file and it will work the same as if it was in appsettings.xml.

source124 commented 8 months ago

It was many things, shortcuts was one of them (others were page size, scan quality,...).

Thanks for the info. Does this apply to any element or the keyboard shortcuts only?

cyanfish commented 8 months ago

Not every element but a lot. e.g. DefaultProfileSettings for page size, scan quality, etc. will work.

cyanfish commented 5 months ago

I'm going to close this in favor of #207 as the plan is to provide a UI to change these settings (and as discussed, config.xml can be used in the meantime).