SimpleNotePad icon indicating copy to clipboard operation
SimpleNotePad copied to clipboard

Portable Mode

Open smaragdus opened this issue 3 years ago • 0 comments

@zhongyang219

I discovered that SimpleNotePad was available in English (since version 1.42), thanks.

I did a brief testing and found out that the program saves settings to Windows registry:

HKEY_CURRENT_USER\Software\Apps By ZhongYang\SimpleNotePad

I would like to ask- is there a way to run SimpleNotePad in portable mode, I mean settings saved in configuration file inside program folder (next to the executable- SimpleNotePad.exe) in stead in Windows registry?

If portable mode is currently not supported (as of version 1.43) I would like to suggest an option to use SimpleNotePad in portable mode, I will suggest several common methods for triggering portable mode, examples:

  • Configuration file in program folder triggers portable mode- when SimpleNotePad starts it checks its program folder whether it contains configuration file (for example- config.ini) and if it exists the settings are saved in the configuration file inside program folder, not in Windows registry;
  • Special file in program folder triggers portable mode- when SimpleNotePad starts it checks its program folder whether it contains special file (for example- portable.txt) and if it exists the settings are saved in configuration file inside program folder, not in Windows registry;
  • Command-line argument- if SimpleNotePad is started with a special parameter, for example SimpleNotePad --portable the settings are saved in configuration file inside program folder, not in Windows registry;

Any of these options would be fine for me yet I prefer the first and the second because they are simpler to use.

Regards

smaragdus avatar Feb 06 '22 23:02 smaragdus