I finally got it working. In my case the solution was forcing JabRef to use GTK2 instead of GTK3. Here are the steps:
- Download and install the .deb with
sudo dpkg -i jabref_5.1-1_amd64.deb
- Fix dependencies if neccesary
sudo apt-get install -f
- Locate the file
JabRef.cfg
. In my case it was in /opt/jabref/lib/app
.
- Modify this file and add in the [Java Options] section
-Djdk.gtk.version=2
.
After that JabRef started working flawlessly.
Update:
After I updated to JabRef 5.2, the problem came back. After consulting with JabRef developers in github, I had to use this other workaround:
- Modify the file
/opt/jabref/lib/runtime/bin/JabRef
and add the -Djdk.gtk.version=2
modifier. Something like this: "$DIR/java" -p "$DIR/../app" -Djdk.gtk.version=2 -m org.jabref/org.jabref.gui.JabRefLauncher "$@"
- Modify the launcher so it points to this file. For that I installed
menulibre
(sudo apt-get install menulibre
) and I modified JabRef entry to point to /opt/jabref/lib/runtime/bin/JabRef
.