From d7a49834ea4b3fbe9703cdd408b1a4b4a36a1636 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sun, 28 Feb 2021 21:38:25 +0100 Subject: nxcomp/Children.cpp: display dialog text in output This ensures the dialog text is visible in the log which is useful when the dialog display tool (nxclient, nxdialog, ...) fails or cannot be found. Fixes ArcticaProject/nx-libs#915 --- nxcomp/src/Children.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nxcomp/src/Children.cpp b/nxcomp/src/Children.cpp index 036cffa95..40eccd9da 100644 --- a/nxcomp/src/Children.cpp +++ b/nxcomp/src/Children.cpp @@ -216,7 +216,15 @@ int NXTransDialog(const char *caption, const char *message, UnsetEnv("LD_LIBRARY_PATH"); - for (int i = 0; i < 2; i++) + if (!pulldown) + { + cerr << "Info: Upcoming dialog:\n" + << "/-----------------------------------------------------------\n" + << caption << ":\n" + << message << "\n" + << "\\-----------------------------------------------------------\n"; + } + { if (local != 0) { -- cgit v1.2.3