gnucash stable: Multiple changes pushed

Frank H.Ellenberger fell at code.gnucash.org
Fri Apr 12 18:44:11 EDT 2024


Updated	 via  https://github.com/Gnucash/gnucash/commit/0796a0ef (commit)
	 via  https://github.com/Gnucash/gnucash/commit/da659cf7 (commit)
	from  https://github.com/Gnucash/gnucash/commit/a79c1dd3 (commit)



commit 0796a0ef060fae3e94fa53b3dd2a97cca1aa9513
Merge: a79c1dd3ce da659cf765
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date:   Sat Apr 13 00:28:03 2024 +0200

    Merge PR #1906 into stable


commit da659cf76573cccb4fa82dfa56ae03f052a746da
Author: наб <nabijaczleweli at nabijaczleweli.xyz>
Date:   Sat Apr 6 12:00:43 2024 +0200

    Fix invalid-$DISPLAY error being non-text
    
    Given
      nabijaczleweli at 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 at tarta:~$
    we can obviously see the error output isn't a text file.

diff --git a/gnucash/gnucash.cpp b/gnucash/gnucash.cpp
index 76feb80073..7bb960fb8b 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;
     }
 



Summary of changes:
 gnucash/gnucash.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)



More information about the gnucash-changes mailing list