From 25562f283162168cf5f63ff72b7ee856bd7ceb8e Mon Sep 17 00:00:00 2001 From: Iwan Timmer Date: Tue, 18 Feb 2014 17:42:46 +0100 Subject: [PATCH] Warn about the usage of X --- src/com/limelight/Limelight.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/limelight/Limelight.java b/src/com/limelight/Limelight.java index d66c9b2..c744273 100644 --- a/src/com/limelight/Limelight.java +++ b/src/com/limelight/Limelight.java @@ -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);