Warn about the usage of X

This commit is contained in:
Iwan Timmer
2014-02-18 17:42:46 +01:00
parent 3caff7075e
commit 25562f2831

View File

@@ -53,6 +53,11 @@ public class Limelight implements NvConnectionListener {
System.err.println("You are using a unsupported VM: " + vm);
System.err.println("Please update to Oracle Java (Embedded) for better performances");
}
String display = System.getenv("DISPLAY");
if (display!=null) {
System.err.println("X server is propably running");
System.err.println("Please exit the X server for a lower latency");
}
conn = new NvConnection(host, this, streamConfig);