Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
spock opened this issue Jun 22, 2017 · 7 comments
Labels
Milestone

Comments

@spock
Copy link

spock commented Jun 22, 2017

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
@dridk
Copy link
Member

dridk commented Jun 22, 2017

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

@natir natir added the bug label Jun 22, 2017
@natir
Copy link
Member

natir commented Jun 22, 2017

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.

@dridk
Copy link
Member

dridk commented Jun 22, 2017

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

@natir
Copy link
Member

natir commented Jun 22, 2017

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

@dridk
Copy link
Member

dridk commented Jun 22, 2017

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

@dridk dridk added this to the 0.3 milestone Jun 22, 2017
@natir
Copy link
Member

natir commented Jul 8, 2017

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

@StuntsPT
Copy link
Member

StuntsPT commented Jul 8, 2017

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants