Skip to content

No-GUI mode (--nogui) should not try to use DISPLAY #7510

@bastistician

Description

@bastistician

This has already been reported in #3754, but is apparently not fixed.

I can reproduce the failure for JabRef versions 4.0, 4.3.1, 5.0, 5.1, 5.2 and current 5.3--2021-03-09--5855bcf on Ubuntu 16.04 (openjdk version "1.8.0_282", openjfx 8u60-b27-4). It works in old JabRef 3.8.2.

Steps to reproduce the behavior:

  1. Switch to non-graphical TTY1
  2. bin/JabRef -n --version
Exception in thread "main" java.lang.UnsupportedOperationException: Unable to open DISPLAY
   at [email protected]/com.sun.glass.ui.gtk.GtkApplication.lambda$new$6(Unknown Source)
   at java.base/java.security.AccessController.doPrivileged(Unknown Source)
   at [email protected]/com.sun.glass.ui.gtk.GtkApplication.<init>(Unknown Source)
   at [email protected]/com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(Unknown Source)
   at [email protected]/com.sun.glass.ui.Application.run(Unknown Source)
   at [email protected]/com.sun.javafx.tk.quantum.QuantumToolkit.startup(Unknown Source)
   at [email protected]/com.sun.javafx.application.PlatformImpl.startup(Unknown Source)
   at [email protected]/com.sun.javafx.application.PlatformImpl.startup(Unknown Source)
   at [email protected]/com.sun.javafx.application.LauncherImpl.startToolkit(Unknown Source)
   at [email protected]/com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
   at [email protected]/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(Unknown Source)
   at java.base/java.lang.Thread.run(Unknown Source)
Failed to launch JVM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions