notepad-plus-plus-legacy/PowerEditor
Don HO b6a66ba2b1
Add "-settingsDir" argument for overriding default settings path
Currently the settings directory could be:

1. Notepad++ installation dir if doLocalConf.xml is present.
2. %APPDATA%\Notepad++ if doLocalConf.xml is absent.
3. The path defined in \cloud\choice in Notepad++ installation or in %APPDATA%\Notepad++, it depends on the existence of doLocalConf.xml.

In this PR "-settingsDir" argument is added for overriding above settings paths:
4. Overrided by command line argument -settingsDir="E:\my NppSettings\" : All the above configurations will be ignored, Notepad++ will load (and write) config.xml and the other configuration xml files from (into) "E:\my NppSettings\". Note that double quotes is not necessary if there's no white space in the given path.

The priorities are: 1. -settingsDir 2. Cloud 3. %APPDATA%\Notepad++ or Notepad++ installation dir.
If the given path "E:\my NppSettings\" is not a valid directory (it doesn't exist or it's a file), this argument is ignored and the settings dir will fall back to Cloud (or to %APPDATA%\Notepad++ or Notepad++ installation dir, if settings on Cloud is not defined).

Close #4696, close #9287
2020-12-21 16:03:05 +01:00
..
bin Notepad++ v7.9.1 release 2020-11-02 01:40:33 +01:00
gcc Project structure improvement: Move TreeView files in the right place 2020-10-31 19:15:11 +01:00
installer Make "total documents number" feature in Window dialog translatable 2020-12-16 18:49:06 +01:00
misc/chameleon Remove the old icon 2016-09-21 09:06:22 +02:00
scintilla.original.forUpdating Upgrade Scintilla from 4.1.4 to 4.2.0 2019-07-22 13:08:41 +02:00
src Add "-settingsDir" argument for overriding default settings path 2020-12-21 16:03:05 +01:00
Test Fix several bugs of PHP parser rule for function list 2020-11-05 14:53:41 +01:00
visual.net Project structure improvement: Move TreeView files in the right place 2020-10-31 19:15:11 +01:00