We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54ad99e commit 15a807eCopy full SHA for 15a807e
1 file changed
src/utils/zotero-runner.ts
@@ -83,9 +83,6 @@ export class ZoteroRunner {
83
) {
84
return "";
85
}
86
- if (line.includes("extensions.zotero.dataDir") && this.options.dataDir !== "") {
87
- return `user_pref("extensions.zotero.dataDir", "${this.options.dataDir}");`;
88
- }
89
return line;
90
});
91
@@ -103,7 +100,11 @@ export class ZoteroRunner {
103
100
// Build args
104
101
let args: string[] = ["--purgecaches", "no-remote"];
105
102
if (this.options.profilePath) {
106
- args.push("-profile", this.options.profilePath);
+ args.push("-profile", resolve(this.options.profilePath));
+ }
+ if (this.options.dataDir) {
+ // '--dataDir' required absolute path
107
+ args.push("--dataDir", resolve(this.options.dataDir));
108
109
if (this.options.devtools) {
110
args.push("--jsdebugger");
0 commit comments