Detect if the client is runnig headless
This commit is contained in:
25
.idea/jarRepositories.xml
generated
Normal file
25
.idea/jarRepositories.xml
generated
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="RemoteRepositoriesConfiguration">
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="central" />
|
||||||
|
<option name="name" value="Maven Central repository" />
|
||||||
|
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="jboss.community" />
|
||||||
|
<option name="name" value="JBoss Community repository" />
|
||||||
|
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="MavenRepo" />
|
||||||
|
<option name="name" value="MavenRepo" />
|
||||||
|
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="BintrayJCenter" />
|
||||||
|
<option name="name" value="BintrayJCenter" />
|
||||||
|
<option name="url" value="https://jcenter.bintray.com/" />
|
||||||
|
</remote-repository>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -16,6 +16,7 @@ Parameters as GET:
|
|||||||
* extras (optional): Extra data used for the configuration.
|
* extras (optional): Extra data used for the configuration.
|
||||||
* hostname (optional): Hostname of the machine, useful for distinguishing multiple machines with the same hardware configuration. Only used for display on the website.
|
* hostname (optional): Hostname of the machine, useful for distinguishing multiple machines with the same hardware configuration. Only used for display on the website.
|
||||||
* ui (optional): User interface used by the client, useful for statistics
|
* ui (optional): User interface used by the client, useful for statistics
|
||||||
|
* headless: Is the machine is running headless (Eevee is not compatible with headless)
|
||||||
|
|
||||||
Answer in case of error:
|
Answer in case of error:
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
|||||||
@@ -200,6 +200,7 @@ public class Server extends Thread {
|
|||||||
.add("hostname", user_config.getHostname())
|
.add("hostname", user_config.getHostname())
|
||||||
.add("ui", client.getGui().getClass().getSimpleName())
|
.add("ui", client.getGui().getClass().getSimpleName())
|
||||||
.add("extras", user_config.getExtras())
|
.add("extras", user_config.getExtras())
|
||||||
|
.add("headless", java.awt.GraphicsEnvironment.isHeadless() ? "1" : "0")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
this.log.debug("Server::getConfiguration url " + remoteURL.build().toString());
|
this.log.debug("Server::getConfiguration url " + remoteURL.build().toString());
|
||||||
|
|||||||
Reference in New Issue
Block a user