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:
Dan Stillman 2017-09-11 03:49:06 -04:00
parent d8d9758f27
commit e9439c978b
7 changed files with 77 additions and 11 deletions

View file

@ -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;