JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.51k stars 2.47k forks source link

JabRef (Portable/tar.gz) not opening in sway/swaywm/wayland; Debian 12 #11489

Open alaminkouser opened 1 month ago

alaminkouser commented 1 month ago

JabRef version

5.15 (latest release)

Operating system

GNU / Linux

Details on version and operating system

No response

Checked with the latest development build (copy version output from About dialog)

Steps to reproduce the behaviour

  1. Download the tar.gz file/Linux Portable
  2. Extract with tar xf
  3. run "./bin/JabRef"
  4. OR run "./lib/runtime/bin/JabRef"
  5. JabRef not opening

Appendix

...

Log File: 5.15 stable ``` aak@debian:~/Downloads/JabRef$ ./bin/JabRef Messages are not initialized before accessing key: Display help on command line options 2024-07-13 14:39:47 [main] org.jabref.Launcher.main() ERROR: Unexpected exception: java.lang.UnsupportedOperationException: Unable to open DISPLAY at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkApplication.lambda$new$5(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkApplication.(Unknown Source) at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(Unknown Source) at javafx.graphics@22.0.1/com.sun.glass.ui.Application.run(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.startup(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.PlatformImpl.startup(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.PlatformImpl.startup(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.LauncherImpl.startToolkit(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) ^Caak@debian:~/Downloads/JabRef$ ./lib/runtime/bin/JabRef Messages are not initialized before accessing key: Display help on command line options 2024-07-13 14:40:20 [main] org.jabref.Launcher.main() ERROR: Unexpected exception: java.lang.UnsupportedOperationException: Unable to open DISPLAY at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkApplication.lambda$new$5(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkApplication.(Unknown Source) at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(Unknown Source) at javafx.graphics@22.0.1/com.sun.glass.ui.Application.run(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.startup(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.PlatformImpl.startup(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.PlatformImpl.startup(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.LauncherImpl.startToolkit(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) ^C ```

...

Log File: 5.16 dev; 2024-07-11 ``` aak@debian:~/Downloads/JabRef$ ./bin/JabRef Messages are not initialized before accessing key: Display help on command line options 2024-07-13 15:03:27 [main] org.jabref.Launcher.main() ERROR: Unexpected exception: java.lang.UnsupportedOperationException: Unable to open DISPLAY at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkApplication.lambda$new$5(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkApplication.(Unknown Source) at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(Unknown Source) at javafx.graphics@22.0.1/com.sun.glass.ui.Application.run(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.startup(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.PlatformImpl.startup(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.PlatformImpl.startup(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.LauncherImpl.startToolkit(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) ^Caak@debian:~/Downloads/JabRef$ ./lib/runtime/bin/JabRef Messages are not initialized before accessing key: Display help on command line options 2024-07-13 15:03:38 [main] org.jabref.Launcher.main() ERROR: Unexpected exception: java.lang.UnsupportedOperationException: Unable to open DISPLAY at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkApplication.lambda$new$5(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkApplication.(Unknown Source) at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(Unknown Source) at javafx.graphics@22.0.1/com.sun.glass.ui.Application.run(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.startup(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.PlatformImpl.startup(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.PlatformImpl.startup(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.LauncherImpl.startToolkit(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source) at javafx.graphics@22.0.1/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) ^C ```
koppor commented 1 month ago

This refs https://github.com/JabRef/jabref/issues/11464, where we also had a missing DISPLAY variable.

Google found https://www.jr-it-services.de/how-to-set-environment-variables-for-x11-programs-running-under-sudo-to-use-wayland-or-xwayland/

To support us fixing the issue, could you work on a Vagrantfile similar to the one we made for Ubuntu? -- https://github.com/JabRef/jabref/tree/main/scripts/vms/ubuntu. Background is written down here: https://github.com/JabRef/jabref/tree/main/scripts/vms#virtual-machines-for-testing-jabref

koppor commented 1 month ago

Maybe simply

declare -X DISPLAY=:0

helps, but IDK.

alaminkouser commented 1 month ago

It was working when I was in gnome. Let me do some research first.

And it seems I need to have a windows computer to work on Vagrantfile file. I will setup a windows computer next month.

koppor commented 1 month ago

It was working when I was in gnome. Let me do some research first.

As far as I understood, sway is Wayland, and Gnome still has some X11.

And it seems I need to have a windows computer to work on Vagrantfile file. I will setup a windows computer next month.

Where do you get this information from?

I went to https://www.vagrantup.com/, then clicked on Download. Then I scrolled down. This is the important step. Do not miss that on that page!

They do offer Linux. Several editions. I tried to mark it in the screenshot. Maybe, it helps, to find it!

image