mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-22 00:38:54 +00:00
Set java.awt.headless
to true
due to Windows 11 issues (#312)
* set java.awt.headless to true due to Windows 11 issues * do not force headles mode but us it as default
This commit is contained in:
parent
608b58b3e0
commit
46077bf5b7
@ -121,6 +121,10 @@ public class DiagramResponse {
|
||||
return;
|
||||
}
|
||||
initialized = true;
|
||||
// set headless mode manually since otherwise Windows 11 seems to have some issues with it
|
||||
// see Issue#311 :: https://github.com/plantuml/plantuml-server/issues/311
|
||||
// NOTE: This can only be set before any awt/X11/... related stuff is loaded
|
||||
System.setProperty("java.awt.headless", System.getProperty("java.awt.headless", "true"));
|
||||
// set security profile to INTERNET by default
|
||||
// NOTE: this property is cached inside PlantUML and cannot be changed after the first call of PlantUML
|
||||
System.setProperty("PLANTUML_SECURITY_PROFILE", SecurityProfile.INTERNET.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user