From 6230cc0d50544a574a37c1419b45d9f9c831d280 Mon Sep 17 00:00:00 2001
From: Axel Naumann <Axel.Naumann@cern.ch>
Date: Tue, 12 Mar 2019 18:51:50 +0100
Subject: [PATCH] [rootx] No logo if DISPLAY is not set:

Without DISPLAY, everything might work just fine because no
TGClient is needed. But then do not spoil the party by trying
to display the popup!
---
 rootx/src/rootx.cxx | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/rootx/src/rootx.cxx b/rootx/src/rootx.cxx
index 1f926d8de84..f410b35e346 100644
--- a/rootx/src/rootx.cxx
+++ b/rootx/src/rootx.cxx
@@ -338,6 +338,11 @@ int main(int argc, char **argv)
       return 1;
    }
 
+#ifndef R__HAS_COCOA
+   if (!getenv("DISPLAY")) {
+      gNoLogo = true;
+   }
+#endif
    if (batch)
       gNoLogo = true;
    if (about) {
-- 
GitLab