From da659cf76573cccb4fa82dfa56ae03f052a746da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Sat, 6 Apr 2024 12:00:43 +0200 Subject: [PATCH] Fix invalid-$DISPLAY error being non-text Given nabijaczleweli@tarta:~$ DISPLAY=komputerek-x40.:0 gnucash Run 'g --help' to see a full list of available command line options. Error: could not initialise graphical user interface and option add-price-quotes was not set. Perhaps you need to set the $DISPLAY environment variable?nabijaczleweli@tarta:~$ we can obviously see the error output isn't a text file. --- gnucash/gnucash.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnucash/gnucash.cpp b/gnucash/gnucash.cpp index 76feb80073d..7bb960fb8b1 100644 --- a/gnucash/gnucash.cpp +++ b/gnucash/gnucash.cpp @@ -296,7 +296,8 @@ main(int argc, char ** argv) << "\n" // Translators: Do not translate $DISPLAY! It is an environment variable for X11 << _("Error: could not initialize graphical user interface and option add-price-quotes was not set.\n" - "Perhaps you need to set the $DISPLAY environment variable?"); + "Perhaps you need to set the $DISPLAY environment variable?") + << "\n"; return 1; }