public class X11HelperConstructors
public X11Helper()Methods
void configureGraphicsEnvironment(ProcessBuilder, LaunchContext)Normalizes the child JVM graphics environment so Linux launches can
fall back to X11 when a local Xwayland display is available.void configureGraphicsEnvironment(ProcessBuilder, Path, LaunchContext)Normalizes the child JVM graphics environment using the supplied X11
socket directory.Integer parseDisplayNumber(String)String resolveDisplay(Path)Attempts to infer an active X11 display from socket names such as X0,
X1, and so on.List<String> substituteVariables(List, Map)Replaces ${key} placeholders in the supplied arguments.public static void configureGraphicsEnvironment(ProcessBuilder processBuilder, LaunchContext context)Normalizes the child JVM graphics environment so Linux launches can
fall back to X11 when a local Xwayland display is available.
| Parameters | ||
|---|---|---|
processBuilder | ProcessBuilder | The process builder for the child JVM, which will be modified in-place to set DISPLAY and potentially XDG_SESSION_TYPE |
context | LaunchContext | |
public static void configureGraphicsEnvironment(
ProcessBuilder processBuilder,
Path x11SocketDirectory,
LaunchContext context
)Normalizes the child JVM graphics environment using the supplied X11
socket directory.
| Parameters | ||
|---|---|---|
processBuilder | ProcessBuilder | |
x11SocketDirectory | Path | |
context | LaunchContext | |
public static Integer parseDisplayNumber(String socketName)public static String resolveDisplay(Path x11SocketDirectory)public static List<String> substituteVariables(List<String> arguments, Map<String, String> variables)