Fix symlinked pdftotext on Linux

This commit is contained in:
Dan Stillman 2007-07-17 20:57:15 +00:00
parent d5b126caf2
commit c4c3b4ad84

View File

@ -123,17 +123,7 @@ Zotero.Fulltext = new function(){
}
exec.append(fileName);
if (exec.exists()) {
// DEBUG: I'm not sure isSymlink() actually works on any platforms
if (exec.isSymlink()) {
exec = exec.target;
if (!exec.target) {
errMsg = fileName + ' symlink target not found';
exec = null;
}
}
}
else {
if (!exec.exists()) {
exec = null;
errMsg = fileName + ' not found';
}