Skip to content

PCGen fails to start on Fedora Silverblue (Toolbox) due to missing X11/HeadlessException #7334

@Tealk

Description

@Tealk

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:

  1. Use Fedora Silverblue (e.g., 42)

  2. Create a toolbox:

    toolbox create
    toolbox enter
  3. Download and extract PCGen v6.08.00 RC8

  4. Try to launch it:

    xvfb-run ./pcgen.sh
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions