Allow setting data directory via -datadir command-line flag
Can be an absolute path or 'profile' to use 'zotero' subdirectory of profile directory as in earlier versions (but which won't be treated as a legacy location eligible for migration) Closes #1305
This commit is contained in:
parent
d8d9758f27
commit
e9439c978b
7 changed files with 77 additions and 11 deletions
|
@ -503,6 +503,8 @@ ZoteroCommandLineHandler.prototype = {
|
|||
zInitOptions.forceDebugLog = 1;
|
||||
}
|
||||
|
||||
zInitOptions.forceDataDir = cmdLine.handleFlagWithParam("datadir", false);
|
||||
|
||||
// handler to open Zotero pane at startup in Zotero for Firefox
|
||||
if (!isStandalone() && cmdLine.handleFlag("ZoteroPaneOpen", false)) {
|
||||
zInitOptions.openPane = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue