mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-10 00:27:00 +00:00
explicitly detect java.awt.headless in build
This commit is contained in:
@@ -66,7 +66,7 @@ public enum JavaFXPlatform {
|
||||
|
||||
String osClassifier = project.getExtensions().getByType(OsDetector.class).getClassifier();
|
||||
|
||||
if(GraphicsEnvironment.isHeadless()) {
|
||||
if("true".equals(System.getProperty("java.awt.headless")) || GraphicsEnvironment.isHeadless()) {
|
||||
osClassifier += "-monocle";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user