Skip to content

Commit

Permalink
Fix invalid-$DISPLAY error being non-text
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nabijaczleweli committed Apr 11, 2024
1 parent cab6173 commit da659cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnucash/gnucash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit da659cf

Please sign in to comment.