FastQt icon indicating copy to clipboard operation
FastQt copied to clipboard

fastqt command line does not work: QXcbConnection: Could not connect to display

Open spock opened this issue 7 years ago • 7 comments

When trying to run fastqt 0.2.3 in a screen session over ssh connection to a remote host, the following error is displayed:

QXcbConnection: Could not connect to display
Aborted

spock avatar Jun 22 '17 15:06 spock

Did you try -X arguments with ssh :

   ssh -X user@server

Otherwise, you can run fastqt as command line by using giving arguments.

  fastqt fileA.fastq fileB.fastq

dridk avatar Jun 22 '17 18:06 dridk

I can confirm this bug if I want use fastqt in cli or in gui remotely i need use ssh -X.

Use ssh -X can be a temporary solution.

natir avatar Jun 22 '17 18:06 natir

So it's not a bug . It's same for all GUI application.

dridk avatar Jun 22 '17 19:06 dridk

If it's appear in cli mode it's a bug.

natir avatar Jun 22 '17 19:06 natir

ah ok. Understood.. We should detect if X server is avaible. Otherwise run as CLI

dridk avatar Jun 22 '17 19:06 dridk

I am not sure but maybe this page can help https://stackoverflow.com/questions/23844867/qt-application-with-optional-gui

natir avatar Jul 08 '17 14:07 natir

I'd just like to add 2 thing to the discussion:

  1. It is recommended to use ssh -Y instead of ssh -X for security reasons (please check ssh's man page for more information)
  2. I'm not sure this applies to C++, but when I built a Qt app in python, using pyQt that has both a GUI and CLI interface I solved the problem with modules (the "back-end" part of the code is completely independent of the GUI "front-end")

StuntsPT avatar Jul 08 '17 23:07 StuntsPT