Skip to content

Commit

Permalink
Add experimental support for glass.platform="Headless"
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Dec 3, 2023
1 parent 0cfd0c5 commit 6d35252
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/qz/printer/action/html/WebApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,9 @@ public static synchronized void initialize() throws IOException {
// Fallback for JDK11+
headless = true;
}
if (useMonocle && SystemUtilities.hasMonocle()) {
if (useMonocle) {
log.trace("Initializing monocle platform");
System.setProperty("javafx.platform", "monocle");
// Don't set glass.platform on Linux per https://github.com/qzind/tray/issues/702
switch(SystemUtilities.getOsType()) {
case WINDOWS:
case MAC:
System.setProperty("glass.platform", "Monocle");
break;
default:
// don't set "glass.platform"
}
System.setProperty("glass.platform", "Headless");

//software rendering required headless environments
if (headless) {
Expand Down

0 comments on commit 6d35252

Please sign in to comment.