Fix PDF tools installation on Linux

This commit is contained in:
Dan Stillman 2015-05-26 04:44:02 -04:00
parent 3d3b817724
commit 8a0b4d92a6
2 changed files with 3 additions and 2 deletions

View File

@ -377,7 +377,8 @@ Zotero.File = new function(){
this.download = Zotero.Promise.coroutine(function* (uri, path) {
var msg = "Saving " + (uri.spec ? uri.spec : uri) + " to " + (path.path ? path.path : path);
Zotero.debug("Saving " + (uri.spec ? uri.spec : uri)
+ " to " + (path.path ? path.path : path));
var deferred = Zotero.Promise.defer();
NetUtil.asyncFetch(uri, function (is, status, request) {

View File

@ -11,7 +11,7 @@ describe("Zotero.Fulltext", function () {
it("should install the PDF tools", function* () {
var version = "3.04";
var dataDir = Zotero.getZoteroDirectory().path;
var execFileName = 'pdfinfo-' + Zotero.platform;
var execFileName = Zotero.Fulltext.pdfInfoFileName;
var execContents = new Array(50001).join('a');
var execPath = OS.Path.join(dataDir, execFileName);
var versionFileName = execFileName + '.version';