I have some issues with the installation of the 5.1.60000 ‘snap’ version of JabRef, as installed in Ubuntu 20.04 using ‘sudo snap install jabref’. Hopefully reporting here is the right thing. I think that @koppor is the maintainer of the package, so hopefully he’ll see this message.
The issue that I have is that after installing Jabref, I can’t link to LibreOffice to insert citations. If I straightaway click the leftmost ‘autodetection’ button in the LibreOffice ‘tool’, then I get an error dialog which contains the following text:
java.lang.IllegalStateException: Not on FX application thread; currentThread = pool-3-thread-1
at org.jabref.merged.module@5.1.60000/com.sun.javafx.tk.Toolkit.checkFxUserThread(Unknown Source)
at org.jabref.merged.module@5.1.60000/com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(Unknown Source)
at org.jabref.merged.module@5.1.60000/javafx.stage.Stage.(Unknown Source)
at org.jabref.merged.module@5.1.60000/javafx.stage.Stage.(Unknown Source)
at org.jabref.merged.module@5.1.60000/javafx.scene.control.HeavyweightDialog$1.(Unknown Source)
at org.jabref.merged.module@5.1.60000/javafx.scene.control.HeavyweightDialog.(Unknown Source)
at org.jabref.merged.module@5.1.60000/javafx.scene.control.Dialog.(Unknown Source)
at org.jabref.merged.module@5.1.60000/javafx.scene.control.Alert.(Unknown Source)
at org.jabref.merged.module@5.1.60000/javafx.scene.control.Alert.(Unknown Source)
at org.jabref@5.1.60000/org.jabref.gui.FXDialog.(Unknown Source)
at org.jabref@5.1.60000/org.jabref.gui.FXDialog.(Unknown Source)
at org.jabref@5.1.60000/org.jabref.gui.JabRefDialogService.createDialog(Unknown Source)
at org.jabref@5.1.60000/org.jabref.gui.JabRefDialogService.showInformationDialogAndWait(Unknown Source)
at org.jabref@5.1.60000/org.jabref.gui.openoffice.DetectOpenOfficeInstallation.selectInstallationPath(Unknown Source)
at org.jabref@5.1.60000/org.jabref.gui.openoffice.DetectOpenOfficeInstallation.autoDetectPaths(Unknown Source)
at org.jabref@5.1.60000/org.jabref.gui.openoffice.DetectOpenOfficeInstallation.isInstalled(Unknown Source)
at org.jabref@5.1.60000/org.jabref.gui.openoffice.OpenOfficePanel$1.call(Unknown Source)
at org.jabref@5.1.60000/org.jabref.gui.openoffice.OpenOfficePanel$1.call(Unknown Source)
at org.jabref.merged.module@5.1.60000/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
I discovered that the LibreOffice integration depends on the presence of the deb package ‘libreoffice-java-common’, so next I installed that. I still got the same error (as far as I can tell).
Then I tried using the second ‘detect’ button. It asks for a path to the OpenOffice/LibreOffice library. However, some freaky stuff to do with folder permissions appears to be happening – if I type in the correct folder, /usr/lib/libreoffice/program/classes, I get “no such file or directory”. If I attempt to navigate to that folder, I can’t see it at all. If I type “ls /usr/lib/libreoffice/program/classes” in a terminal as regular user, it clearly is there. I’m not sure if there is a solution possible here or not… perhaps this is a fundamental limitation of the ‘snap’ approach to doing things? (Down with 180 MB snap packages! Long live proper 8 MB deb and rpm packages!)
PS when I installed the jabref.org .deb version (JabRef download latest version), it worked immediately, without problems.