mcaselector icon indicating copy to clipboard operation
mcaselector copied to clipboard

CLI mode isn't headless (error: Unable to open DISPLAY)

Open wajrou opened this issue 11 months ago • 1 comments

Describe the bug CLI mode doesn't work on Linux without X server.

To Reproduce

java --module-path /usr/share/openjfx/lib/ --add-modules ALL-MODULE-PATH -jar ~/bin/mcaselector-2.3.jar --mode cache --world ~/paper/world --zoom-level 1 --output ~/paper/map/world

exited immediately with:

error: Unable to open DISPLAY

Environment (please complete the following information):

  • OS: Debian 11.9
  • Java version:
openjdk 17.0.10 2024-01-16
OpenJDK Runtime Environment (build 17.0.10+7-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 17.0.10+7-Debian-1deb11u1, mixed mode, sharing)
  • OpenJFX: 11.0.11
  • Version of MCA Selector: 2.3

wajrou avatar Mar 10 '24 03:03 wajrou

Same issue here. I am currently trying to run this from within a Pterodactyl server container, I'll have to use an older version until this is fixed.

OrangeCatUnderscore avatar Aug 01 '24 02:08 OrangeCatUnderscore