be more informative when DISPLAY isn't set under unix
[mussa.git] / qui / mussagl.cpp
index dcf393b146178300d918aa6b6d912910ee8bf8d4..3d45cb7dc9c164afd1f3ed6a82337aa87e4c6d2c 100644 (file)
@@ -21,6 +21,9 @@ int main(int argc, char **argv)
   // if we're under unix and don't have a display, see if we can still run
 #ifdef Q_WS_X11
   opts.useGUI = getenv("DISPLAY") != 0;
+  if (opts.useGUI == false) {
+    std::clog << "DISPLAY not set, running in console mode only" << std::endl;
+  }
 #endif
 
   QApplication app(argc, argv, opts.useGUI);