On Tue, 13 May 2008 18:46:17 +0100, martin f krafft wrote: > Opening with any of the three open-as-file methods (F4, icon, right > click on entry) do nothing.
1) First try:
I have different and not really reproducible results: sometimes one
or two methods work and sometime not, sometimes nothing happens,
sometimes the pdf viewer starts immediately and sometimes minutes
later. And I had to add a leading slash to the filename after adding it.
In between jabref used all the RAM of my machine until java threw an
exception:
Exception in thread "Thread-6" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
at java.lang.StringBuilder.append(StringBuilder.java:119)
at java.io.UnixFileSystem.resolve(UnixFileSystem.java:93)
at java.io.File.<init>(File.java:207)
at java.io.File.listFiles(File.java:1056)
at net.sf.jabref.Util.findInDir(Unknown Source)
at net.sf.jabref.Util.findInDir(Unknown Source)
at net.sf.jabref.Util.findInDir(Unknown Source)
at net.sf.jabref.Util.findInDir(Unknown Source)
at net.sf.jabref.Util.findInDir(Unknown Source)
at net.sf.jabref.Util.findInDir(Unknown Source)
at net.sf.jabref.Util.findInDir(Unknown Source)
at net.sf.jabref.Util.findInDir(Unknown Source)
at net.sf.jabref.Util.findPdf(Unknown Source)
at net.sf.jabref.BasePanel$19$1.run(Unknown Source)
2) Second try:
Ok, this seems a bit more reproducible:
* define xpdf for pdfs in ~/.mailcap
* restart jabref
* set external viewer->PDF to "see"
* left click on pdf icon in table or right click on pdf icon and
choose name: xpdf starts immediately
* Tools->Open file: xpdf starts immediately
* Tools->Open PDF: nothing happens
* right click on item line in table -> open file: xpdf starts
* right click on item -> open pdf: nothing
3) Seeing more light:
Oh, "open PDF" works with pdf fields (that was Morten's hint, now I
understand _which_ fields). The second line is added manually:
file = {some description:/home/gregoa/Achleitner2003.pdf:PDF},
pdf = {/home/gregoa/Achleitner2003.pdf},
The "file" line gets called by the "open file" and the icon in the
first column of the table, the pdf field is used by the "open pdf"
command and the icon in the second column of the entries table.
And now after a restart I get the message about the changed database
format and rewriting links. If I say yes the two lines above are
combined to:
file = {some
description:/home/gregoa/Achleitner2003.pdf:PDF;Achleitner2003.pdf:/home/gregoa/Achleitner2003.pdf:PDF},
From now on "open pdf" doesn't work anymore and "open file"/use the
icon in the first column works as above.
4) Last test:
* change .mailcap to use acroread instead of xpdf
* set the "file =" field back to the version above, no "pdf =" field
* works as above, i.e. "open file" and first (only) icon open the pdf
in acroread, "open pdf" doesn nothing
Pheew, not easy :)
5) May tentative conclusion now is:
* "see" is not the problem
* which commands work depends on "file =" vs. "pdf =" (and therefore
also on the "database format"), maybe also on the config file? I see
at the moment
[EMAIL PROTECTED]:~$ grep -i pdf .java/.userPrefs/net/sf/jabref/prefs.xml
<entry key="externalFileTypes" value="PDF:pdf:see:pdfSmall"/>
<entry key="pdfColumn" value="true"/>
<entry key="pdfDirectory" value=""/>
<entry key="pdfviewer" value="acroread"/>
(note the pdfviewer which is not accessible through the interface
any more, if I'm not mistaken)
* Martin, is it possible that you have "pdf =" fields in your bibtex
file?
* Morten, I don't know if there's anything you can do about this;
maybe disabling the menu options that won't work (i.e. "open file"
for entries with pdf= fields and "open pdf" for "file=" fields
could avoid some of the confusion? Or internally "map" the calls to
each other?
Cheers,
gregor
--
.''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
: :' : debian gnu/linux user, admin & developer - http://www.debian.org/
`. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/
`- NP: Paul Mc Cartney: Here There And Everywhere
signature.asc
Description: Digital signature

