Page MenuHomePhabricator

Give proper error message when DISPLAY is not set (rather than crash)
Open, LowPublic

Description

$ ./build/src/qt/bitcoin-qt --help
QXcbConnection: Could not connect to display
Aborted (core dumped)
$ echo $DISPLAY

$ export DISPLAY=:0
$ echo $DISPLAY                                            
:0
$ ./build/src/qt/bitcoin-qt --help
Bitcoin ABC version v0.19.0.0-dde1e30 (64-bit)
Usage:
  bitcoin-qt [command-line options]
...

As show above, bitcoin-qt should not core dump just because DISPLAY isn't set. It should give a proper error. First check if Core has a suitable backport for this.

Event Timeline

jasonbcox created this task.