Describe the bug
Trying to run ./pcgen.sh inside a Fedora Silverblue [Toolbox](https://docs.fedoraproject.org/en-US/fedora-silverblue/toolbox/) container fails with a java.awt.HeadlessException, even when wrapping execution in xvfb-run.
To Reproduce
Steps to reproduce the behavior:
-
Use Fedora Silverblue (e.g., 42)
-
Create a toolbox:
toolbox create
toolbox enter
-
Download and extract PCGen v6.08.00 RC8
-
Try to launch it:
-
You get the following error:
java.awt.HeadlessException:
No X11 DISPLAY variable was set,
or no headful library support was found,
but this program performed an operation which requires it
Expected behavior
PCGen should start in the simulated X11 environment provided by xvfb-run, or at least gracefully detect a headless environment.
Environment:
- OS: Fedora Silverblue (Immutable OS)
- Execution: via
toolbox container (Fedora base)
- PCGen version: v6.08.00 RC8
- Java version: OpenJDK 17
xorg-x11-server-Xvfb installed and xvfb-run available